[MLton-commit] r4868

Matthew Fluet fluet at mlton.org
Tue Nov 28 15:14:39 PST 2006


Working towards 'make COMPILE_FAST=yes OMIT_BYTECODE=yes'
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/Makefile

----------------------------------------------------------------------

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Makefile
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-11-28 22:47:29 UTC (rev 4867)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-11-28 23:14:38 UTC (rev 4868)
@@ -95,7 +95,7 @@
 endif
 
 CC := gcc -std=gnu99
-CFLAGS := -I. -Iplatform $(FLAGS)
+CFLAGS := -I. -Iplatform -Ibasis -Ibasis/Word -Ibasis/Real -I../include -Ibytecode $(FLAGS)
 OPTCFLAGS := $(CFLAGS) $(OPTFLAGS)
 DEBUGCFLAGS := $(CFLAGS) -g2 -O1 -DASSERT=1 $(DEBUGFLAGS)
 GCOPTCFLAGS = $(GCOPTFLAGS)
@@ -150,35 +150,26 @@
 WARNCFLAGS += -Wno-format -Wno-missing-format-attribute
 endif
 
+UTILHFILES :=							\
+	$(shell find util -type f | grep '\.h$$')
 UTILCFILES :=							\
 	$(shell find util -type f | grep '\.c$$')
-UTILHFILES :=							\
-	$(shell find util -type f | grep '\.h$$')
 UTILOFILES := $(foreach f, $(UTILCFILES), $(basename $(f)).o)
 
+GCHFILES :=							\
+	$(shell find gc -type f | grep '\.h$$')
 GCCFILES :=							\
 	$(shell find gc -type f | grep '\.c$$')
-GCHFILES :=							\
-	$(shell find gc -type f | grep '\.h$$')
 
 BASISHFILES :=							\
 	$(shell find basis -type f | grep '\.h$$')
 
+BYTEHFILES :=							\
+	$(shell find bytecode -type f | grep '\.h$$')
 BYTECFILES :=							\
 	$(shell find bytecode -type f | grep '\.c$$')
-BYTEHFILES :=							\
-	$(shell find bytecode -type f | grep '\.h$$')
 
-CFILES := 							\
-	$(UTILCFILES)						\
-	$(shell find basis -type f | grep '\.c$$' | grep -v Real/)	\
-	gc.c							\
-	platform.c
 
-ifneq ($(OMIT_BYTECODE), yes)
-CFILES += bytecode/interpret.c
-endif
-
 HFILES := 							\
 	cenv.h                                                  \
 	$(UTILHFILES)						\
@@ -193,7 +184,11 @@
 	platform/$(TARGET_ARCH).h				\
 	$(BASISHFILES)
 
-FILES := $(basename $(CFILES))
+CFILES := 							\
+	$(UTILCFILES)						\
+	$(shell find basis -type f | grep '\.c$$' | grep -v Real/)	\
+	gc.c							\
+	platform.c
 
 # EXTRA_CFILES is for files that we don't want compiled in the big
 # lump when compiling COMPILE_FAST.
@@ -202,6 +197,13 @@
 	$(shell find basis/Real -type f | grep '\.c$$')	\
 	platform/$(TARGET_OS).c
 
+ifeq ($(OMIT_BYTECODE), yes)
+EXTRA_CFILES += bytecode/interpret.c
+else
+CFILES += bytecode/interpret.c
+endif
+
+FILES := $(basename $(CFILES))
 EXTRA_FILES := $(basename $(EXTRA_CFILES))
 
 ifeq ($(COMPILE_FAST), yes)




More information about the MLton-commit mailing list