99
|
1 MCLIBS=alloc.txt c.txt fileio.txt fileio2.txt mclib.c scanf.txt\
|
|
2 stdio.txt stdio2.txt string.txt
|
|
3
|
|
4 MCUTILS=uf.c
|
|
5
|
|
6 DESTDIR=/usr/local/bin
|
|
7
|
100
|
8 CFLAGS = -m32 -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses
|
|
9
|
|
10 AS09 = ../../src/a09
|
|
11
|
101
|
12 all: mc2
|
99
|
13
|
|
14 mc: mc.c
|
100
|
15 cc $(CFLAGS) mc.c -o mc
|
99
|
16
|
|
17 c.out: mc mc2.c mclib.c
|
100
|
18 ./mc mc2.c
|
99
|
19
|
101
|
20 mc2: c.out
|
|
21 $(AS09) crtos9.asm -l c.lst -o mc2
|
|
22
|
|
23 # mc2.o: c.out
|
|
24 # $(AS09) c.txt -l c.lst -o mc2.o
|
99
|
25
|
|
26 lint: mc.c
|
|
27 lint mc.c >lint
|
|
28
|
|
29 shar: diff_to_mc2
|
|
30 shar COPYRIGHT README MANIFEST makefile $(MCLIBS) $(MCUTILS) diff_to_mc2 >mc.shar.0
|
|
31 shar mc.c >mc.shar.1
|
|
32
|
|
33 diff_to_mc2: mc.c mc2.c
|
|
34 -diff -c mc.c mc2.c >diff_to_mc2
|
|
35
|
|
36 mc2.c:
|
|
37 patch <diff_to_mc2 -o mc2.c
|
|
38
|
|
39 clean:
|
|
40 rm -f mc c.out mc2.o lint
|
|
41
|
|
42 install: mc
|
|
43 cp mc $(DESTDIR)/mc
|