From 152aefb0086b3482acae19ab78545a4a29ae7c20 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 23 Nov 2009 20:42:39 -0800 Subject: * configure (platform_flags, remove_flags): New config variables. * Makefile (CFLAGS): Take into account new flags. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 05f2d19c..1f9fe8e0 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,8 @@ -include config.make CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \ - $(OPT_FLAGS) $(INLINE_FLAGS) $(DBG_FLAGS) + $(OPT_FLAGS) $(INLINE_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS) +CFLAGS := $(filter-out $(REMOVE_FLAGS),$(CFLAGS)) OBJS := txr.o lex.yy.o y.tab.o match.o lib.o regex.o gc.o unwind.o stream.o OBJS += hash.o utf8.o @@ -98,8 +99,8 @@ install: $(PROG) cp txr $(install_prefix)$(bindir) cp $(top_srcdir)/txr.1 $(install_prefix)$(mandir)/man1 -config.make: - @echo "config.make missing: you didn't run ./configure" +config.make config.h: + @echo "$@ missing: you didn't run ./configure" @exit 1 # -- cgit v1.2.3