From: "Henrik Bergström" Newsgroups: comp.os.msdos.djgpp Subject: Re: How is the MAKE work currentlly... Date: Thu, 28 May 1998 09:53:01 +0200 Organization: Private User Lines: 34 Message-ID: <6kj4pm$g5k$1@news3.global-ip.net> References: <356c3a56 DOT 2602522 AT news DOT ficnet DOT net DOT tw> NNTP-Posting-Host: ctfs.celsiustech.se To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk otto wrote in message <356c3a56 DOT 2602522 AT news DOT ficnet DOT net DOT tw>... > My project has more 20 source file, > and has one global header file. > When I modified the header file, > the make can't find the global file is modified. > Then tell me " Nothing to do"... > The makefile created by RHIDE 1.2. make relies on what is called 'dependencies'. In short this means that you define which files are related to each other so that make can tell when it needs to update a certain file. Now, I don't know anything about RHIDE but it seems as if it does not include your global header as a dependency for your source files. Some programming environments require that you perform a specific operation on your makefile to modify it so that it includes correct dependencies. This if often accomplished with the makedepend (Unix) command. If I am not mistaken RHIDE is some kind of a integrated programming environment with a graphical user interface? Perhaps there is a menu selection or something which says something like 'make depend'? If you use GNU make you can accomplish this in a much more elegant (and effective) way by using '.d files' (as in dependency). Each source file has its own .d file which includes its dependencies. The .d files can be automatically generated by GNU gcc.