See inserts below. Thios doesn't solve every problem, but it may help with changing values for a variable.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:help-make- > [EMAIL PROTECTED] On Behalf Of Anoneironaut > Sent: Tuesday, July 25, 2006 10:03 AM > To: [email protected] > Subject: Multiple files different flags needed > > > Hey guys, > > Here is my situation. I'm trying to make a bunch of files into a > single executable. Most of these files compile and link with a uniform > set > of flags. However there are 2 or 3 files which have different flags. > What > I tried to do to make this work was to define a pattern rule and then > define > these files hoping that they would override the pattern rule: > > # General Rules for making %.r37 : CFLAGS = -Dabc -I/dogs/pigs/sheep > %.r37:%.c > $(COMP) $(CFLAGS) $< > %.r37: CFLAGS = -O3 -Wall > %.r37:%.C > $(COMP) $(CFLAGS) $< > Test.d37: XFLAGS = -Bdynamic Test.d37: LNK = gcc > Test.d37: $(R37FILES) > $(LNK) $(XFLAGS) $(R37FILES) > > # Special Makes > > Heap.r37 : Heap.c > $(COMP) $(HEAPFLAGS) Heap.c > > However when I try this I get a "multiple target patterns" error. > > I've read through the Gnu-make notes and looked at examples.. but nothing > addresses my problem. So can anyone out there tell me how I can make a > pattern rule but allow for some exceptions to that rule?? > > Thanks, > > Anon > -- > View this message in context: http://www.nabble.com/Multiple-files- > different-flags-needed-tf1998767.html#a5487000 > Sent from the Gnu - Make - Help forum at Nabble.com. > > > > _______________________________________________ > Help-make mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
