On Wed, 2010-03-24 at 05:04 -0700, nature wrote: > Hi , > > I have a list of src files along with the path in a file. Is it possible to > include this file ( like SRC = listfiles.txt )instead of listing them as SRC > = file1.c file2.c ....?
If the file (listfiles.txt) has a syntax like "SRC = file1.c file2.c ..." then you can include it with: include listfiles.txt If not, then you'll have to use $(shell ...). Since you appear to be on Windows I'm not sure how exactly to do it; on UNIX you'd say: SRC := $(shell cat listfiles.txt) Maybe on Windows you'd use "type" instead of "cat"? I haven't used Windows in many years. -- ------------------------------------------------------------------------------- Paul D. Smith <psm...@gnu.org> Find some GNU make tips at: http://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Make-w32 mailing list Make-w32@gnu.org http://lists.gnu.org/mailman/listinfo/make-w32