diff Makefile @ 172:096559f07a70

some check
author kono
date Tue, 25 Nov 2003 11:47:41 +0900
parents 9e55cc5551fb
children 3a7b45f62c66
line wrap: on
line diff
--- a/Makefile	Mon Nov 24 20:28:19 2003 +0900
+++ b/Makefile	Tue Nov 25 11:47:41 2003 +0900
@@ -39,7 +39,9 @@
 	perl mc-h-renum.pl mc.h > mc.h.1
 	mv mc.h.1 mc.h
 
-check-all:
+check-all:  check-all-c check-all-code
+
+check-all-c:
 	make check TARGET=test/basic
 	make check TARGET=test/call
 	make check TARGET=test/fact0
@@ -48,17 +50,33 @@
 	make check TARGET=test/int
 	make check TARGET=test/macro
 	make check TARGET=test/regargs
+	make check TARGET=test/short
 	make check TARGET=test/simp
 	make check TARGET=test/simp0
+	make check TARGET=test/static
 	make check TARGET=test/tmp
 	make check TARGET=test/tmp10
 	make check TARGET=test/tmp11
 	make check TARGET=test/tmp12
+#	make check TARGET=test/tmp5
 	make check TARGET=test/tmp7
-	make check TARGET=test/tmp8
+#	make check TARGET=test/tmp8
 	make check TARGET=test/tmp9
-	make check TARGET=test/static
-	make check TARGET=test/short
+#MK =-make
+MK=
+check-all-code:
+	make check-code$(MK) TARGET=test/arg
+	make check-code$(MK) TARGET=test/conv
+	make check-code$(MK) TARGET=test/conv1
+	make check-code$(MK) TARGET=test/fact-a
+	make check-code$(MK) TARGET=test/fact
+	make check-code$(MK) TARGET=test/goto
+#	make check-code$(MK) TARGET=test/test1
+#	make check-code$(MK) TARGET=test/tmp1
+	make check-code$(MK) TARGET=test/tmp2
+	make check-code$(MK) TARGET=test/tmp4
+#	make check-code$(MK) TARGET=test/tmp6
+
 
 check: $(MC)
 	-gcc $(TARGET).c -o b.out $(MLIB)
@@ -68,6 +86,16 @@
 	-./a.out > $(TARGET).$(MC).out
 	-diff  $(TARGET).gcc.out $(TARGET).$(MC).out
 
+check-code: $(MC)
+	-./$(MC) -s $(TARGET).c
+	-gcc $(TARGET).s $(MLIB)
+	-./a.out > $(TARGET).$(MC).out
+	-diff  $(TARGET).code-out $(TARGET).$(MC).out
+check-code-make: $(MC)
+	-./$(MC) -s $(TARGET).c
+	-gcc $(TARGET).s $(MLIB)
+	-./a.out > $(TARGET).code-out
+
 tar :
 	make clean
 	tar cBf - . | gzip > ../comp.tgz