delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/08/11:32:15

From: jae AT Laden1 DOT sun DOT soe DOT clarkson DOT edu (Juergen Erhard)
Subject: Re: Sample Makefile
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List)
Date: Mon, 8 Jan 1996 17:58:41 +0100 (MET)

Ed. Mueller wrote
> 
> %.d : %.cpp
> 	command /c $(CC) -MM $< | sed "s/$*.o/& $@/g" > $@
You don't need the sed part when you do -MMD 'stead of -MM...
BUT gcc 2.6.3 seems to barf on X.cpp (2.7.0 gets it, though)
gcc 2.6.3 needs *.cc files... and because gdb doesn't understand
*.cpp files as source files, I switched (yep, Eli, if you read
this, I succumbed)

ciao...

-- 
Juergen A. Erhard
eMail: jae AT laden DOT ilk DOT de
snailMail: Juergen Erhard
           Belfortstr. 6
           76133 Karlsruhe
           GERMANY
phone: (+49) (0)721/27326

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019