News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Trouble with custom makefiles

Started by pegasus2000, October 04, 2008, 11:14:10 AM

Previous topic - Next topic

pegasus2000

How does Code::Blocks manage the custom makefiles ?

I have written a probe makefile with this only row

echo $SOURCES

I expected that the system returns the list of sources files that are
present in the project, so that the makefile can compile them.

Instead the environment variable is empty.

So, how can I write a custom makefile ?

stahta01

#1
Do you know what an makefile target is? (The word before the :     )
Code::Blocks calls the make command with an target.

C::B normally uses the target release and debug.

Makefiles tend to use "all" as the top target.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]