Mercurial > hg > Members > kono > os9 > sbc09
annotate os9/mc09/makefile @ 107:c5dd5c363d43
mc.c in intel64 ( LP64 )
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 29 Dec 2018 23:05:40 +0900 |
parents | 6eef99bb4771 |
children | 098b3feab38c |
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 | |
107
c5dd5c363d43
mc.c in intel64 ( LP64 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
105
diff
changeset
|
8 # CFLAGS = -m32 -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses |
c5dd5c363d43
mc.c in intel64 ( LP64 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
105
diff
changeset
|
9 CFLAGS = -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses -Wno-format |
100 | 10 |
11 AS09 = ../../src/a09 | |
12 | |
101 | 13 all: mc2 |
99 | 14 |
15 mc: mc.c | |
100 | 16 cc $(CFLAGS) mc.c -o mc |
99 | 17 |
18 c.out: mc mc2.c mclib.c | |
100 | 19 ./mc mc2.c |
99 | 20 |
101 | 21 mc2: c.out |
22 $(AS09) crtos9.asm -l c.lst -o mc2 | |
23 | |
24 # mc2.o: c.out | |
25 # $(AS09) c.txt -l c.lst -o mc2.o | |
99 | 26 |
27 lint: mc.c | |
28 lint mc.c >lint | |
29 | |
30 shar: diff_to_mc2 | |
31 shar COPYRIGHT README MANIFEST makefile $(MCLIBS) $(MCUTILS) diff_to_mc2 >mc.shar.0 | |
32 shar mc.c >mc.shar.1 | |
33 | |
34 diff_to_mc2: mc.c mc2.c | |
35 -diff -c mc.c mc2.c >diff_to_mc2 | |
36 | |
37 mc2.c: | |
38 patch <diff_to_mc2 -o mc2.c | |
39 | |
104 | 40 testcp : mc test/cp.c |
105 | 41 ./mc -s -Mtestcp test/cp.c |
104 | 42 $(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
|
43 |
99 | 44 clean: |
104 | 45 rm -f mc c.out mc2.o lint testcp |
99 | 46 |
47 install: mc | |
48 cp mc $(DESTDIR)/mc |