[MLton-commit] r4065
Matthew Fluet
MLton@mlton.org
Mon, 5 Sep 2005 04:29:14 -0700
Added models target to check all models.
----------------------------------------------------------------------
U mlton/branches/on-20050822-x86_64-branch/runtime/gc/Makefile
----------------------------------------------------------------------
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/gc/Makefile
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/gc/Makefile 2005-09-05 03:19:05 UTC (rev 4064)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/gc/Makefile 2005-09-05 11:29:12 UTC (rev 4065)
@@ -21,10 +21,12 @@
else
FLAGS += -malign-loops=2 -malign-jumps=2 -malign-functions=5
endif
+MODELS = A
endif
ifeq ($(TARGET_ARCH), amd64)
FLAGS += -mtune=opteron
+MODELS = A AX B BX C CX G
endif
ifeq ($(TARGET_ARCH), sparc)
@@ -103,6 +105,14 @@
done; \
) > gc.h
+.PHONY: models
+models: gc.c gc.h
+ ( \
+ for m in $(MODELS); do \
+ $(CC) $(CFLAGS) -DGC_MODEL_$$m -c -o gc.$$m.o gc.c; \
+ done; \
+ )
+
.PHONY: clean
clean:
../bin/clean