comparison Makefile @ 172:096559f07a70

some check
author kono
date Tue, 25 Nov 2003 11:47:41 +0900
parents 9e55cc5551fb
children 3a7b45f62c66
comparison
equal deleted inserted replaced
171:3902240d4930 172:096559f07a70
37 37
38 mc.h-new: 38 mc.h-new:
39 perl mc-h-renum.pl mc.h > mc.h.1 39 perl mc-h-renum.pl mc.h > mc.h.1
40 mv mc.h.1 mc.h 40 mv mc.h.1 mc.h
41 41
42 check-all: 42 check-all: check-all-c check-all-code
43
44 check-all-c:
43 make check TARGET=test/basic 45 make check TARGET=test/basic
44 make check TARGET=test/call 46 make check TARGET=test/call
45 make check TARGET=test/fact0 47 make check TARGET=test/fact0
46 make check TARGET=test/float 48 make check TARGET=test/float
47 make check TARGET=test/ifdef 49 make check TARGET=test/ifdef
48 make check TARGET=test/int 50 make check TARGET=test/int
49 make check TARGET=test/macro 51 make check TARGET=test/macro
50 make check TARGET=test/regargs 52 make check TARGET=test/regargs
53 make check TARGET=test/short
51 make check TARGET=test/simp 54 make check TARGET=test/simp
52 make check TARGET=test/simp0 55 make check TARGET=test/simp0
56 make check TARGET=test/static
53 make check TARGET=test/tmp 57 make check TARGET=test/tmp
54 make check TARGET=test/tmp10 58 make check TARGET=test/tmp10
55 make check TARGET=test/tmp11 59 make check TARGET=test/tmp11
56 make check TARGET=test/tmp12 60 make check TARGET=test/tmp12
61 # make check TARGET=test/tmp5
57 make check TARGET=test/tmp7 62 make check TARGET=test/tmp7
58 make check TARGET=test/tmp8 63 # make check TARGET=test/tmp8
59 make check TARGET=test/tmp9 64 make check TARGET=test/tmp9
60 make check TARGET=test/static 65 #MK =-make
61 make check TARGET=test/short 66 MK=
67 check-all-code:
68 make check-code$(MK) TARGET=test/arg
69 make check-code$(MK) TARGET=test/conv
70 make check-code$(MK) TARGET=test/conv1
71 make check-code$(MK) TARGET=test/fact-a
72 make check-code$(MK) TARGET=test/fact
73 make check-code$(MK) TARGET=test/goto
74 # make check-code$(MK) TARGET=test/test1
75 # make check-code$(MK) TARGET=test/tmp1
76 make check-code$(MK) TARGET=test/tmp2
77 make check-code$(MK) TARGET=test/tmp4
78 # make check-code$(MK) TARGET=test/tmp6
79
62 80
63 check: $(MC) 81 check: $(MC)
64 -gcc $(TARGET).c -o b.out $(MLIB) 82 -gcc $(TARGET).c -o b.out $(MLIB)
65 -./b.out > $(TARGET).gcc.out 83 -./b.out > $(TARGET).gcc.out
66 -./$(MC) -s $(TARGET).c 84 -./$(MC) -s $(TARGET).c
67 -gcc $(TARGET).s $(MLIB) 85 -gcc $(TARGET).s $(MLIB)
68 -./a.out > $(TARGET).$(MC).out 86 -./a.out > $(TARGET).$(MC).out
69 -diff $(TARGET).gcc.out $(TARGET).$(MC).out 87 -diff $(TARGET).gcc.out $(TARGET).$(MC).out
88
89 check-code: $(MC)
90 -./$(MC) -s $(TARGET).c
91 -gcc $(TARGET).s $(MLIB)
92 -./a.out > $(TARGET).$(MC).out
93 -diff $(TARGET).code-out $(TARGET).$(MC).out
94 check-code-make: $(MC)
95 -./$(MC) -s $(TARGET).c
96 -gcc $(TARGET).s $(MLIB)
97 -./a.out > $(TARGET).code-out
70 98
71 tar : 99 tar :
72 make clean 100 make clean
73 tar cBf - . | gzip > ../comp.tgz 101 tar cBf - . | gzip > ../comp.tgz
74 102