Re: [Dev-C++] How to customize makefile?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Tom C. <jat...@gm...> - 2003-05-28 15:32:34
|
"Maxim Yemelyanov" <ma...@en...> writes: > Hello, everybody! > > How can I customize makefile, generated by DevC++ ? Whe I edit it, it's > re-created on each build & all my changes are lost. > I need this to include .h-files dependencies, like that: > main.o: main.cpp myclass.h I ran into the same problem recently and found the following bit of lateral thinking worked nicely: In the Dev-C++ IDE, choose Compiler Options from the Tools menu and set a compile delay of 5000ms. Create a copy of your make file called, say, makecopy.win. Now create a text file in your project's directory and save with the BAT extension. Paste this into it: @echo off copy makecopy.win makefile.win /Y Save, then create a shortcut to this BAT file in your Quick Launch bar or somewhere else convenient. Now, whenever you compile your project, in the 5000ms delay between makefile generation and execution by Dev-C++ of gcc, click your shortcut and it will restore the overwritten makefile to your customised version. There's probably an easier way that I'm not aware of, though. :-) --Tom |