News:

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

Main Menu

Custom makefile problem

Started by Chainsawkitten, June 23, 2008, 02:50:25 PM

Previous topic - Next topic

Chainsawkitten

I want to use a custom makefile for my project. According to the FAQ I need to change Build Method to use makefiles in the Compiler Settings (tab Other). But I can't change it. It says Invoke Compiler Directly and won't give me any other choise (I can't open the drop-down menu since it's disabled). What do I need to do in order to get it to work?

EDIT: Oh, I forgot to tell you that I'm using Windows XP.

stahta01

IIRC these are the steps to make a project use an custom makefile
Step 1. "Project" -> "Properties" Tab "Project settings" make sure "this is an custom makefile" is checked.
Step 2. Make sure the name of the makefile is correct defaulted to "Makefile" on mine.
Step 3. Change the targets so they match
           "Project" -> "Properties" Tab "Build Targets" normally has "debug" and "release" in the list.
           Change to match targets in the makefile.
           assuming the Code::Blocks has targets "debug" and "release"
           Then the makefile should have these targets
           debug
           release
           cleandebug
           cleanrelease
           distcleandebug
           distcleanrelease

Note: The prefix of distclean and clean are defined on
"Project" -> "Build Options" Tab "Make" Commands.

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]