[AD] Makefile flags override patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Seeing that flurry of activity back on
the list, may I point you to this patch
which might be considered. I originally
did it after Eric removed -pipe, as it
allows one to add such misc flags while
not having the complexity Eric did not
want.
Basically, it allows one to type:
make CFLAGS=-pipe
or whatever other flags one may want.

Vincent



--- makefile.in.override        Sun May 16 21:15:25 2004
+++ makefile.in Sun May 16 21:16:25 2004
@@ -61,12 +61,12 @@
 INCLUDES = -I. -Iinclude -Iinclude/allegro -I$(srcdir)/include -I$(srcdir)/include/allegro
 DEFS = @DEFS@
 CPPFLAGS = @CPPFLAGS@
-LDFLAGS = @LDFLAGS@
+override LDFLAGS += @LDFLAGS@
 PROG_LDFLAGS = @PROG_LDFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 LINK = $(CC) $(PROG_LDFLAGS)

-CFLAGS = @CFLAGS@
+override CFLAGS += @CFLAGS@
 ALLEGRO_DEBUG_CFLAGS = @ALLEGRO_DEBUG_CFLAGS@
 ALLEGRO_PROFILE_CFLAGS = @ALLEGRO_PROFILE_CFLAGS@
 ALLEGRO_SHAREDLIB_CFLAGS = @ALLEGRO_SHAREDLIB_CFLAGS@







Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/