[MLton-commit] r7311
Wesley Terpstra
wesley at mlton.org
Wed Oct 28 06:36:49 PST 2009
Standard Makefile practice allows the user to override CFLAGS and CPPFLAGS.
----------------------------------------------------------------------
U mlton/trunk/runtime/Makefile
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile 2009-10-28 14:00:46 UTC (rev 7310)
+++ mlton/trunk/runtime/Makefile 2009-10-28 14:36:49 UTC (rev 7311)
@@ -126,11 +126,14 @@
FLAGS += -funroll-all-loops
endif
+# These flags can be overridden by the user
CPPFLAGS :=
-CFLAGS := -I. -Iplatform $(FLAGS)
-OPTCFLAGS := $(CFLAGS) $(CPPFLAGS) $(OPTFLAGS)
-DEBUGCFLAGS := $(CFLAGS) $(CPPFLAGS) -DASSERT=1 $(DEBUGFLAGS)
-PICCFLAGS := $(CFLAGS) $(CPPFLAGS) $(OPTFLAGS) $(PICFLAGS)
+CFLAGS :=
+
+INCFLAGS := -I. -Iplatform
+OPTCFLAGS := $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) $(FLAGS) $(OPTFLAGS)
+DEBUGCFLAGS := $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) $(FLAGS) -DASSERT=1 $(DEBUGFLAGS)
+PICCFLAGS := $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) $(FLAGS) $(OPTFLAGS) $(PICFLAGS)
GCOPTCFLAGS = $(GCOPTFLAGS)
GCDEBUGCFLAGS = $(GCDEBUGFLAGS)
GCPICCFLAGS = $(GCOPTFLAGS) $(GCPICFLAGS)
More information about the MLton-commit
mailing list