From: Felix Natter Newsgroups: comp.os.msdos.djgpp Subject: GNU makefiles Date: 02 Jul 1999 23:59:26 +0200 Organization: S.u.S.E GmbH, Gebhardtstr. 2, 90762 Fuerth, Germany Lines: 38 Message-ID: NNTP-Posting-Host: port241.bonn.ndh.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: public.ndh.net 930945312 21534 195.94.93.241 (2 Jul 1999 19:55:12 GMT) X-Complaints-To: abuse AT ndh DOT net NNTP-Posting-Date: 2 Jul 1999 19:55:12 GMT User-Agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I have a RHIDE project that I want to convert to one using makefiles (I donīt want to use RHIDEīs function to generate one, because itīs not human readable.) Iīve got all the include files in HOME\INCL and the project files in HOME\PROJECT_NAME. Iīd like to do as few as possible work twice (my projects are really very small, but I think this approach is better with regard to larger projects) so Iīd like to generate dependencies automatically. Does anybody have an example makefile that accomplishes this ? i.e. an include pair is called vbetwo.h/vbetwo.cpp, and I want to compile ball.cpp, which uses this file among others. So my makefile looks something like this: .PHONY: ball OBJECTS = vbetwo.o [...] ball: $(OBJECTS) gpp -o ball.exe $(OBJECTS) vbetwo.o: ??? gpp -c vbetwo.cpp I do have the GNU make 3.77 manual printed out ready, so you can just tell me where I can find it there. The problem is just that I need more practical applications of the bare rules from the manual. Do you maybe know a practical tutorial for makefiles. I donīt need any technical information (thatīs what the manual is for), just some examples, and tips etc. Thanks, -- Felix Natter