Author Topic: Trouble with custom makefiles  (Read 2989 times)

Offline pegasus2000

  • Single posting newcomer
  • *
  • Posts: 4
Trouble with custom makefiles
« on: October 04, 2008, 11:14:10 am »
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 ?
« Last Edit: October 04, 2008, 11:16:40 am by pegasus2000 »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Trouble with custom makefiles
« Reply #1 on: October 04, 2008, 07:36:09 pm »
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
« Last Edit: October 04, 2008, 07:38:47 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