User forums > Embedded development

Makefile project


I recentry tried to create a a makefile project.

I create an empty project.
-  Go to project properties-> check "This is a custom makefile". In executable filepath: set the makefile path
-  project->build options-> Make commands: Build ptoject/target: $make -f $makefile
( as my makefile is forming muliple binaries, so I didn't mention the target)
-  Add that makefile inside the project.

Am I doing anything wrong or am I missing anything?? Because, when I build project. It gives me build errors.

--- Code: ----------------- Build: Debug in lcdEx1_makefile_libmf_arm_location (compiler: GNU GCC Compiler for ARM)---------------

Checking if target is up-to-date: make.exe -q -f Makefile Debug
Running command: make.exe -f Makefile Debug
make.exe: *** No rule to make target `Debug'.  Stop.
Process terminated with status 2 (0 minute(s), 11 second(s))
0 error(s), 0 warning(s) (0 minute(s), 11 second(s))

--- End code ---
Also, Is there any way to link my codeblocks coupled with cygwin, if I have a makefile with dependencies on cygwin.

Presently I am working on WINDOWS, using Compiler : GNU GCC COMPILER FOR ARM.
Note: I checked into the installation directory of GNU GCC COMPILER FOR ARM/bin, there is no executable like "make.exe" and I dont think make.exe comes with GNU GCC COMPILER FOR ARM, it comes only with GNU GCC Compiler. Am I right??

Can you please stop spamming the forum with your noobish and dumb questions? I wonder if you have any idea what you are doing. Make is an integral part of a GNU toolchain, if its not present in your one, its broken. Regarding your previous posts i doubt you can even tell which of your at least 3 toolchains you are currently using. And as you can see in the build log, the Makefile is run for the target Debug that apparently doesnt exist in it.


--- Quote ---project->build options-> Make commands: Build ptoject/target: $make -f $makefile
--- End quote ---

Did you do this for all the targets and project level?
I am never sure which one needs changed!
Edit2: Looks like you need to make sure Debug target is selected in right left pane.

Did you also change "Clean Project/Target" to

--- Code: ---$make -f $makefile clean
--- End code ---

Tim S.


[0] Message Index

Go to full version