User forums > Using Code::Blocks

compile with autotools

(1/2) > >>

albertolp:
Im trying to compile using c::b and autotools, but its not going good...

Ive got my in myproject/myproject.cbp, the sources it has to compile are in myproject/src and myproject/test

I went to project properties and check "this is a custom Makefile"


but when i try to compile it says:
make: *** No rule to make target `Debug'.  Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

stahta01:
You can do either of the below

1. Change Code::Blocks configuration to match the makefile
2. Change the makefile to match Code::Blocks

I find it easier to change the makefile; but, since you are using the autotools this might not be easy.

What is the correct makefile target to be called for building?

Tim S.

albertolp:
myproject/Makefile build the entire project

stahta01:
I can not help you without getting real answers; I suggest you read about makefile organization; you need to understand what is a makefile target.

http://en.wikipedia.org/wiki/Makefile

Tim S.  

PS: Full Compile Logging might help you to understand what C::B is doing.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

albertolp:
the target is all

and its the first target in my Makefile

Sorry, i misread you there :)

Navigation

[0] Message Index

[#] Next page

Go to full version