On Sun, 2004-02-15 at 10:06, Guido Draheim wrote: > the same patch, but with each $(DEFS) goes an $(ARCH) which allows > to set _additional_ CFLAGS globally while not overriding the default > DEFS in each makefile. Nice for make ARCH=-mpentiumpro or similar > stuff but anything else is okay as well, e.g. -fno-writable-strings > -fstack-check -W -msse2 -fomit-leaf-frame-pointer etc.pp. Why don't you call make CFLAGS="-foo -bar" CPPFLAGS="-DLALA" SYSCONFDIR="/etc" which will override the makefile's variables? Another solution is to replace "CFLAGS =" by "CFLAGS +=". > -CFLAGS = -g -O2 -W -Wall > +CFLAGS = -g -O2 -W -Wall $(DEFS) $(ARCH) > CPPFLAGS = -I../include Preprocessor flags ($DEFS) should be put into CPPFLAGS if needed. Regards, Andreas
Attachment:
signature.asc
Description: This is a digitally signed message part