summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-28 12:06:09 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-28 12:06:09 -0800
commit8f7fb0a019ebf8e40302bff892baf39955c594b1 (patch)
tree6c10208b541cdf4183e2020cb7d8ef250b33e528 /Makefile
parent0e7eec82341e06cd42f2084f776d8377cbcf0871 (diff)
downloadtxr-8f7fb0a019ebf8e40302bff892baf39955c594b1.tar.gz
txr-8f7fb0a019ebf8e40302bff892baf39955c594b1.tar.bz2
txr-8f7fb0a019ebf8e40302bff892baf39955c594b1.zip
* Makefile (CFLAGS): If the compiler matches the pattern %g++,
then remove some C-front-end-specific warnings from CFLAGS, which the g++ front end will complain about.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e7043276..58cf57a3 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,10 @@ CFLAGS := -I. -I$(top_srcdir) $(LANG_FLAGS) $(DIAG_FLAGS) \
$(OPT_FLAGS) $(DBG_FLAGS) $(PLATFORM_FLAGS)
CFLAGS := $(filter-out $(REMOVE_FLAGS),$(CFLAGS))
+ifeq ($(patsubst %g++,y,$(CC)),y)
+CFLAGS := $(filter-out -Wmissing-prototypes -Wstrict-prototypes,$(CFLAGS))
+endif
+
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