Code::Blocks Forums

User forums => Help => Topic started by: Chainsawkitten on June 23, 2008, 02:50:25 pm

Title: Custom makefile problem
Post by: Chainsawkitten on June 23, 2008, 02:50:25 pm
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.
Title: Re: Custom makefile problem
Post by: stahta01 on June 28, 2008, 04:17:36 am
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