diff Makefile @ 550:df60b120675d

*** empty log message ***
author kono
date Tue, 03 Jan 2006 22:23:26 +0900
parents 2f577690bcfb
children 73ebe9d82a9c
line wrap: on
line diff
--- a/Makefile	Tue Jan 03 18:28:46 2006 +0900
+++ b/Makefile	Tue Jan 03 22:23:26 2006 +0900
@@ -61,6 +61,7 @@
 
 check-all-c:
 	make check TARGET=test/basic
+	make check-inline TARGET=test/basic
 	make check TARGET=test/call
 	make check TARGET=test/fact0
 	make check TARGET=test/float
@@ -89,7 +90,7 @@
 	make check TARGET=test/switch
 	make check TARGET=test/strinit
 	make check TARGET=test/code-gen-all
-	make check TARGET=test/code-gen-inline
+	make check-inline TARGET=test/code-gen-all
 	make check TARGET=test/bitfield
 	make check TARGET=test/bitfield1
 	make check TARGET=test/cext
@@ -98,6 +99,7 @@
 	make check TARGET=test/putenemy
 	make check TARGET=test/inline
 #	make check TARGET=test/scope STDFLAG="-std=gnu99"
+#	make check-inline TARGET=test/scope STDFLAG="-std=gnu99"
 #MK =-make
 MK=
 check-all-code:
@@ -132,6 +134,14 @@
 	-./a.out > $(TARGET).$(MC).out
 	-diff $(TARGET).gcc.out $(TARGET).$(MC).out
 
+check-inline: $(MC) $(TARGET).c
+	-$(CC) $(CFLAGS1) $(STDFLAG) $(TARGET).c -o b.out $(MLIB)
+	-./b.out > $(TARGET).gcc.out
+	-./$(MC) -s -DINLINE=inline $(TARGET).c
+	-$(CC) $(TARGET).s $(MLIB)
+	-./a.out > $(TARGET).$(MC).out
+	-diff $(TARGET).gcc.out $(TARGET).$(MC).out
+
 check-code: $(MC)
 	-./$(MC) -s $(TARGET).c
 	-$(CC) $(TARGET).s $(MLIB)