[MLton-commit] r4322

Matthew Fluet MLton@mlton.org
Sat, 28 Jan 2006 09:02:58 -0800


Generate C-type bindings for SML; separately generate ML-type and C-type bindings for C
----------------------------------------------------------------------

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-01-28 17:02:39 UTC (rev 4321)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Makefile	2006-01-28 17:02:57 UTC (rev 4322)
@@ -97,7 +97,8 @@
 	util.h							\
 	$(GCHFILES)						\
 	gc.h							\
-	types.h							\
+	ml-types.h						\
+	c-types.h						\
 	basis-ffi.h						\
 	platform.h						\
 	platform/$(TARGET_OS).h
@@ -169,11 +170,12 @@
 util/%.o: util/%.c util.h $(UTILHFILES)
 	$(CC) $(OPTCFLAGS) $(OPTWARNFLAGS) -c -o $@ $<
 
-types.h: gen/gen-types.c util.h $(UTILOFILES)
-	rm -f types.h
+c-types.h ml-types.h: gen/gen-types.c util.h $(UTILOFILES)
+	rm -f c-types.h ml-types.h
 	$(CC) $(OPTCFLAGS) $(WARNFLAGS) -o gen/gen-types gen/gen-types.c $(UTILOFILES)
 	cd gen && ./gen-types
-	cp gen/types.h types.h
+	cp gen/c-types.h c-types.h
+	cp gen/ml-types.h ml-types.h
 	rm -f gen/gen-types
 
 basis-ffi.h: gen/gen-basis-ffi.sml gen/basis-ffi.def