annotate Makefile @ 18:df7fa8cee67b

pass -Wall add ifdef
author kono
date Sat, 01 Feb 2003 22:19:29 +0900
parents d35df41eac69
children b35787d8a442
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
1 CC = gcc
18
df7fa8cee67b pass -Wall
kono
parents: 0
diff changeset
2 CFLAGS = -g -Wall
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
3 BASE=0
d35df41eac69 Initial revision
kono
parents:
diff changeset
4 STAGE=1
d35df41eac69 Initial revision
kono
parents:
diff changeset
5 MFLAGS=$(MFALGS) BASE=$(BASE) STAGE=$(STAGE)
d35df41eac69 Initial revision
kono
parents:
diff changeset
6 MC=mc
d35df41eac69 Initial revision
kono
parents:
diff changeset
7 PRINTF= # printf.c
d35df41eac69 Initial revision
kono
parents:
diff changeset
8
d35df41eac69 Initial revision
kono
parents:
diff changeset
9 all: mc
d35df41eac69 Initial revision
kono
parents:
diff changeset
10
d35df41eac69 Initial revision
kono
parents:
diff changeset
11 mc : mc-parse.o mc-nop-386.o mc-tree.o
18
df7fa8cee67b pass -Wall
kono
parents: 0
diff changeset
12 $(CC) -g mc-parse.o mc-nop-386.o mc-tree.o -o $@
0
d35df41eac69 Initial revision
kono
parents:
diff changeset
13 tar :
d35df41eac69 Initial revision
kono
parents:
diff changeset
14 make clean
d35df41eac69 Initial revision
kono
parents:
diff changeset
15 tar cBf - . | gzip > ../comp.tgz
d35df41eac69 Initial revision
kono
parents:
diff changeset
16
d35df41eac69 Initial revision
kono
parents:
diff changeset
17 depend :
d35df41eac69 Initial revision
kono
parents:
diff changeset
18 makedepend mc-parse.c mc-nop-386.c mc-tree.c
d35df41eac69 Initial revision
kono
parents:
diff changeset
19
d35df41eac69 Initial revision
kono
parents:
diff changeset
20 clean :
d35df41eac69 Initial revision
kono
parents:
diff changeset
21 -rm -f *.s *.o mc mc1 a.out *~
d35df41eac69 Initial revision
kono
parents:
diff changeset
22
d35df41eac69 Initial revision
kono
parents:
diff changeset
23 mc1 : b00.s b01.s mc-tree.o
d35df41eac69 Initial revision
kono
parents:
diff changeset
24 $(CC) -g -o $@ $(PRINTF) mc-tree.o b00.s b01.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
25 b00.s : mc-parse.c mc
d35df41eac69 Initial revision
kono
parents:
diff changeset
26 ./mc -s mc-parse.c
d35df41eac69 Initial revision
kono
parents:
diff changeset
27 mv mcout.s $@
d35df41eac69 Initial revision
kono
parents:
diff changeset
28 b01.s : mc-nop-386.c mc
d35df41eac69 Initial revision
kono
parents:
diff changeset
29 ./mc -s mc-nop-386.c
d35df41eac69 Initial revision
kono
parents:
diff changeset
30 mv mcout.s $@
d35df41eac69 Initial revision
kono
parents:
diff changeset
31 b10.s : mc-parse.c mc1
d35df41eac69 Initial revision
kono
parents:
diff changeset
32 ./mc1 -s mc-parse.c
d35df41eac69 Initial revision
kono
parents:
diff changeset
33 mv mcout.s $@
d35df41eac69 Initial revision
kono
parents:
diff changeset
34 b11.s : mc-nop-386.c $(PRINTF) mc1
d35df41eac69 Initial revision
kono
parents:
diff changeset
35 ./mc1 -s mc-nop-386.c
d35df41eac69 Initial revision
kono
parents:
diff changeset
36 mv mcout.s $@
d35df41eac69 Initial revision
kono
parents:
diff changeset
37
d35df41eac69 Initial revision
kono
parents:
diff changeset
38 diff : b00.s b01.s b10.s b11.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
39 -diff b00.s b10.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
40 -diff b01.s b11.s
d35df41eac69 Initial revision
kono
parents:
diff changeset
41 # DO NOT DELETE
d35df41eac69 Initial revision
kono
parents:
diff changeset
42
d35df41eac69 Initial revision
kono
parents:
diff changeset
43 mc-parse.o: mc.h stdio.h
d35df41eac69 Initial revision
kono
parents:
diff changeset
44 mc-nop-386.o: mc.h stdio.h
d35df41eac69 Initial revision
kono
parents:
diff changeset
45 mc-tree.o: mc.h stdio.h