comparison os9/mc09/makefile @ 111:c4e909f21b25

micro c,j self compiled on os9 level2
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 31 Dec 2018 17:51:27 +0900
parents 098b3feab38c
children 36000611014b
comparison
equal deleted inserted replaced
110:098b3feab38c 111:c4e909f21b25
1 MCLIBS=alloc.txt c.txt fileio.txt fileio2.txt mclib.c scanf.txt\ 1 MCLIBS=alloc.txt c.txt fileio.txt fileio2.txt mclib.c scanf.txt\
2 stdio.txt stdio2.txt string.txt 2 stdio.txt stdio2.txt string.txt
3 3
4 MCUTILS=uf.c 4 MCUTILS=uf.c
5 5
6 DESTDIR=/usr/local/bin 6 DESTDIR=../level2
7 7
8 # CFLAGS = -m32 -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses 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 9 CFLAGS = -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses -Wno-format
10 10
11 AS09 = ../../src/a09 11 AS09 = ../../src/a09
14 14
15 mc: mc.c 15 mc: mc.c
16 cc $(CFLAGS) mc.c -o mc 16 cc $(CFLAGS) mc.c -o mc
17 17
18 mc2: mc mc2.c mclib.c 18 mc2: mc mc2.c mclib.c
19 ./mc -Mmc mc2.c 19 ./mc -s -Mmc mc2.c
20 $(AS09) crtos9.asm -l c.lst -o mc2 20 $(AS09) crtos9.asm -l mc2.lst -o mc2
21 21
22 # mc2.o: c.out 22 # mc2.o: c.out
23 # $(AS09) c.txt -l c.lst -o mc2.o 23 # $(AS09) c.txt -l c.lst -o mc2.o
24 24
25 lint: mc.c 25 lint: mc.c
40 $(AS09) crtos9.asm -l c.lst -o testcp 40 $(AS09) crtos9.asm -l c.lst -o testcp
41 41
42 clean: 42 clean:
43 rm -f mc c.out mc2.o lint testcp 43 rm -f mc c.out mc2.o lint testcp
44 44
45 install: mc 45 install: mc2
46 cp mc $(DESTDIR)/mc 46 cp mc2 $(DESTDIR)/cmds
47 cp crtos9.asm mclibos9.c test/cp.c $(DESTDIR)/