View Single Post
  #4   (View Single Post)  
Old 25th November 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Default

Quote:
Originally Posted by taylor_venable View Post
... so I am curious about the generic case that every .cc (C++ source) file depends on the .hh (C++ header) file of the same name.
you could use:

Code:
.SUFFIXES:	.o .cc

.cc.o:
	g++ -g -Wall -c ${.IMPSRC}

*.o: $*.hh

Last edited by ephemera; 25th November 2008 at 04:38 PM.
Reply With Quote