Mercurial > hg > Members > kono > os9 > sbc09
annotate os9/mc09/makefile @ 105:6eef99bb4771
fix runtime
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 29 Dec 2018 12:25:26 +0900 |
parents | 096b3fc7aa66 |
children | c5dd5c363d43 |
rev | line source |
---|---|
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 | |
102 | 8 CFLAGS = -m32 -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses |
100 | 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 | |
104 | 39 testcp : mc test/cp.c |
105 | 40 ./mc -s -Mtestcp test/cp.c |
104 | 41 $(AS09) crtos9.asm -l c.lst -o testcp |
103
844305752064
no compile errors on mc09
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
102
diff
changeset
|
42 |
99 | 43 clean: |
104 | 44 rm -f mc c.out mc2.o lint testcp |
99 | 45 |
46 install: mc | |
47 cp mc $(DESTDIR)/mc |