User forums > Using Code::Blocks
Custom Makefile
(1/1)
Knx:
Url
--- Quote --- Q: My project should be compiled with a custom makefile. Is it possible with Code::Blocks?
A: Yes, you can. You need to change two different settings:
a) In "Compiler Settings", under the tab "Other", there's a setting called "Build Method". Choose "Work with makefiles".
b) In your project's Properties, you can choose to use a makefile. Check "This is a custom makefile" (WARNING! if you forget to check, the makefile will be OVERWRITTEN!)
And that's it! :)
--- End quote ---
a) It's disabled...
b) Couldn't proceed...
Why is it disabled?
Knx:
Doing only step b), I get this message:
--- Quote ---mingw32-make.exe: *** No rule to make target `Release'. Stop.
--- End quote ---
sylvia:
I have the same problem.
Can anyone be kind to answer it?
kisoft:
--- Quote from: sylvia on December 04, 2007, 07:21:38 am ---I have the same problem.
Can anyone be kind to answer it?
--- End quote ---
I doing used custom Makefile. I have no problems.
For example, create Makefile_my.
Set this name in project properties.
On compile, will called target Release. In my example target Release equ target all.
On CleanRelease, will called target clean.
--- Code: ---default:
@echo ****************** Make DLL ******************
@make.CMD
Debug: all
Release: all
all :
@echo ****************** Make DLL ******************
@make.CMD
cleanDebug: clean
cleanRelease: clean
clean:
@echo ****************** Remove DLL ******************
@removeall.cmd
--- End code ---
If you have questions, I ready to answer.
Good luck!
sylvia:
Thank you for your reply. I got it. :D
Navigation
[0] Message Index
Go to full version