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

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:

.SUFFIXES:	.o .cc

	g++ -g -Wall -c ${.IMPSRC}

*.o: $*.hh

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