diff 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
line wrap: on
line diff
--- a/os9/mc09/makefile	Mon Dec 31 15:57:24 2018 +0900
+++ b/os9/mc09/makefile	Mon Dec 31 17:51:27 2018 +0900
@@ -3,7 +3,7 @@
 
 MCUTILS=uf.c
 
-DESTDIR=/usr/local/bin
+DESTDIR=../level2
 
 # CFLAGS = -m32 -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses
 CFLAGS = -O0 -g -Wno-return-type -Wno-implicit-int -Wno-implicit-function-declaration -Wno-parentheses -Wno-format
@@ -16,8 +16,8 @@
 	cc $(CFLAGS) mc.c -o mc
 
 mc2:	mc mc2.c mclib.c
-	./mc -Mmc mc2.c
-	$(AS09) crtos9.asm -l c.lst -o mc2
+	./mc -s -Mmc mc2.c
+	$(AS09) crtos9.asm -l mc2.lst -o mc2
 
 # mc2.o:	c.out
 #	$(AS09) c.txt -l c.lst -o mc2.o 
@@ -42,5 +42,6 @@
 clean:
 	rm -f mc c.out mc2.o lint testcp
 
-install: mc
-	cp mc $(DESTDIR)/mc
+install: mc2
+	cp mc2 $(DESTDIR)/cmds
+	cp crtos9.asm mclibos9.c test/cp.c $(DESTDIR)/