Author Topic: Makefile project  (Read 10698 times)

Offline anandamu16

  • Multiple posting newcomer
  • *
  • Posts: 96
Makefile project
« on: March 14, 2017, 10:51:10 am »
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))
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??
« Last Edit: March 14, 2017, 12:13:50 pm by anandamu16 »

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Makefile project
« Reply #1 on: March 14, 2017, 04:41:50 pm »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Makefile project
« Reply #2 on: March 14, 2017, 05:39:15 pm »
Quote
project->build options-> Make commands: Build ptoject/target: $make -f $makefile

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

Tim S.
« Last Edit: March 15, 2017, 03:37:18 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org