Tom,
The info at http://make.paulandlesley.org/autodep.html is really useful. I am able to build the files by giving the file names in the Makefile SRC_FILES = abc.C xyz.C OBJ_FILES = $(patsubst %.C, %.o, ${SRC_FILES}) But I have a 100s of files in a directory. I can not give the names of all the files inside the Makefile. Is there any option or directive available in GNU make that searches a directory and gets the names of all the files available in that and then store that in a variable? Also any idea how to set a destination directory? I mean I want to store all the object files in a directory and the executable in another directory. How to achieve that? Any sample code or pseudo code that handles this would be of great help Thanks, Vijay -----Original Message----- From: Tom Browder [mailto:[email protected]] Sent: Thursday, February 26, 2009 4:55 PM To: Achugatla, Vijay K. (LNG-CON) Cc: [email protected] Subject: Re: Convert nmake Makefile to GNU Makefile Vijay, I just found this link again. It points to Paul Smith's personal home page for make and this link is, I believe, the latest word on automatic dependency generation: http://make.paulandlesley.org/autodep.html -Tom
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
