Author Topic: Custom makefile problem  (Read 9545 times)

Chainsawkitten

  • Guest
Custom makefile problem
« 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.
« Last Edit: June 24, 2008, 10:33:24 am by Chainsawkitten »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Custom makefile problem
« Reply #1 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


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