comparison mc09/makefile @ 160:1a30cd6e5973

move mc09 to top
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 05 Feb 2019 09:03:07 +0900
parents os9/mc09/makefile@42592ea2966f
children
comparison
equal deleted inserted replaced
159:1d574c5b3383 160:1a30cd6e5973
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=../os9/level2
7
8 # CFLAGS = -m32 -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses
9 CFLAGS = -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses -Wno-format
10
11 AS09 = ../src/a09
12
13 all: mc2 testcp
14
15 mc: mc.c
16 cc $(CFLAGS) mc.c -o mc
17
18 mc2: mc mc2.c mclibos9.c
19 ./mc -s -Mmc mc2.c
20 $(AS09) crtos9.asm -l mc2.lst -o mc2
21
22 # mc2.o: c.out
23 # $(AS09) c.txt -l c.lst -o mc2.o
24
25 lint: mc.c
26 lint mc.c >lint
27
28 shar: diff_to_mc2
29 shar COPYRIGHT README MANIFEST makefile $(MCLIBS) $(MCUTILS) diff_to_mc2 >mc.shar.0
30 shar mc.c >mc.shar.1
31
32 diff_to_mc2: mc.c mc2.c
33 -diff -c mc.c mc2.c >diff_to_mc2
34
35 mc2.c:
36 patch <diff_to_mc2 -o mc2.c
37
38 testcp : mc test/cp.c crtos9.asm mclibos9.c
39 ./mc -s -Mtestcp test/cp.c
40 $(AS09) crtos9.asm -l c.lst -o testcp
41
42 clean:
43 rm -f mc c.out mc2.o lint testcp
44
45 install: mc2
46 cp mc2 $(DESTDIR)/cmds
47 cp crtos9.asm mclibos9.c test/cp.c $(DESTDIR)/