[MLton-commit] r5554
Matthew Fluet
fluet at mlton.org
Tue May 15 13:30:00 PDT 2007
Make integration of CPPFLAGS parallel that of CFLAGS
----------------------------------------------------------------------
U mlton/trunk/runtime/Makefile
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile 2007-05-15 20:25:27 UTC (rev 5553)
+++ mlton/trunk/runtime/Makefile 2007-05-15 20:29:59 UTC (rev 5554)
@@ -19,7 +19,7 @@
sed 's/.*gcc version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\2/')
GCC_VERSION := $(GCC_MAJOR_VERSION).$(GCC_MINOR_VERSION)
-FLAGS := $(CPPFLAGS)
+FLAGS :=
EXE :=
OPTFLAGS := -O2 -fomit-frame-pointer
GCOPTFLAGS :=
@@ -105,9 +105,10 @@
endif
CC := gcc -std=gnu99
+CPPFLAGS :=
CFLAGS := -I. -Iplatform $(FLAGS)
-OPTCFLAGS := $(CFLAGS) $(OPTFLAGS)
-DEBUGCFLAGS := $(CFLAGS) -g2 -O1 -DASSERT=1 $(DEBUGFLAGS)
+OPTCFLAGS := $(CPPFLAGS) $(CFLAGS) $(OPTFLAGS)
+DEBUGCFLAGS := $(CPPFLAGS) $(CFLAGS) -g2 -O1 -DASSERT=1 $(DEBUGFLAGS)
GCOPTCFLAGS = $(GCOPTFLAGS)
GCDEBUGCFLAGS = $(GCDEBUGFLAGS)
WARNCFLAGS :=
More information about the MLton-commit
mailing list