Mercurial > hg > Members > kono > os9 > sbc09
annotate src/Makefile @ 153:e57b2d131e6c
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Jan 2019 20:14:15 +0900 |
parents | ef5959682d03 |
children | 5eb5c2120262 |
rev | line source |
---|---|
0 | 1 # |
2 # Makefile Sim6809 | |
3 # | |
4 # created 1994 by L.C. Benschop | |
5 # 2013-10-28 - Jens Diemer: add "clean" section | |
6 # 2014-06-25 - J.E. Klasek | |
7 # | |
8 # copyleft (c) 1994-2014 by the sbc09 team, see AUTHORS for more details. | |
9 # license: GNU General Public License version 2, see LICENSE for more details. | |
10 # | |
11 | |
12 # CFLAGS=-O3 -fomit-frame-pointer -DTERM_CONTROL | |
151 | 13 |
153 | 14 # on old Linux try this |
15 #CFLAGS=-g -DTERM_CONTROL \ | |
16 # -std=c99 -D_POSIX_C_SOURCE=1 -D_XOPEN_SOURCE=1 -D_POSIX_SOURCE=201809L -D_GNU_SOURCE=1 \ | |
17 # -Dd_namlen=d_reclen | |
18 | |
19 CFLAGS=-g -DTERM_CONTROL | |
0 | 20 |
150 | 21 V09FLAGS= -DUSE_TERMIOS # -DNOFMEMOPEN -DBIG_ENDIAN |
0 | 22 |
23 | |
24 SIM_BIN=v09s v09st | |
25 | |
26 APPS=mon2.s | |
27 | |
28 # will be installed to ".." | |
22 | 29 BIN=a09 v09 v09c d09 $(SIM_BIN) v09.rom |
0 | 30 |
51 | 31 TARGETS=$(BIN) $(APPS) |
0 | 32 |
33 OTHER=monitor.s makerom | |
34 | |
35 all: $(TARGETS) | |
36 | |
37 # ------------------------------------ | |
38 | |
22 | 39 a09 : a09.o os9crc.o |
40 $(CC) $(CFLAGS) $(V09FLAGS) a09.o os9crc.o -o $@ | |
0 | 41 |
51 | 42 v09: v09.o engine.o io.o d09.o trace.o vdisk.o |
56 | 43 $(CC) -o v09 $(CFLAGS) v09.o engine.o io.o d09.o trace.o vdisk.o |
0 | 44 |
20 | 45 # with Coco MMU |
51 | 46 v09c: v09.c engine.c io.c d09.o trace.o vdisk.o |
46 | 47 $(CC) -o v09c $(CFLAGS) $(V09FLAGS) -DIOPAGE=0xff80 -DUSE_MMU=1 -DUSE_VDISK v09.c engine.c io.c d09.o trace.c vdisk.c |
3 | 48 |
22 | 49 a09.o : a09.c |
50 $(CC) -c $(CFLAGS) $(V09FLAGS) $< | |
51 | |
52 v09.o: v09.c | |
71 | 53 $(CC) -c $(CFLAGS) -DUSE_VDISK $(V09FLAGS) $< |
0 | 54 |
22 | 55 d09 : d09.c |
56 $(CC) -Wno-format-security $(CFLAGS) $(V09FLAGS) $< -o $@ | |
57 | |
58 d09.o : d09.c | |
59 $(CC) -c -DNO_MAIN -Wno-format-security $(CFLAGS) $(V09FLAGS) $< | |
0 | 60 |
22 | 61 engine.o: engine.c |
62 $(CC) -c $(CFLAGS) $(V09FLAGS) $< | |
0 | 63 |
22 | 64 io.o: io.c |
56 | 65 $(CC) -c $(CFLAGS) -DUSE_VDISK $(V09FLAGS) $< |
0 | 66 |
44
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
33
diff
changeset
|
67 vdisk.o: vdisk.c v09.h |
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
33
diff
changeset
|
68 $(CC) -c $(CFLAGS) $(V09FLAGS) $< |
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
33
diff
changeset
|
69 |
20 | 70 trace.o: trace.c v09.h |
22 | 71 $(CC) -c $(CFLAGS) $(V09FLAGS) $< |
20 | 72 |
0 | 73 v09.rom: makerom monitor.s |
74 ./makerom <monitor.s | |
75 | |
76 monitor.s: monitor.asm | |
77 ./a09 -s monitor.s -l monitor.lst monitor.asm | |
78 | |
79 mon2.s: mon2.asm | |
80 ./a09 -s mon2.s -l mon2.lst mon2.asm | |
81 | |
82 makerom: makerom.c | |
83 $(CC) -o makerom makerom.c | |
84 | |
85 # ------------------------------------ | |
86 | |
87 v09s: v09s.c | |
22 | 88 $(CC) $(CFLAGS) -o $@ $< |
0 | 89 |
90 v09st: v09s.c | |
91 $(CC) $(CFLAGS) -DTRACE -o $@ $< | |
92 | |
93 # ------------------------------------ | |
94 | |
95 install: | |
96 -for bin in $(BIN); do \ | |
97 [ -r $$bin ] && cp -p $$bin .. && echo "installing ../$$bin ..." ;\ | |
98 done ;\ | |
99 exit 0 | |
100 | |
101 # ------------------------------------ | |
102 | |
103 cleanall: clean | |
33 | 104 rm -rf $(TARGETS) $(OTHER) |
105 (cd ..; rm -rf $(BIN) ) | |
0 | 106 |
20 | 107 realclean: cleanall |
108 | |
0 | 109 clean: |
20 | 110 rm -rf core *.BAK *.o *.lst *.dSYM |
0 | 111 |
112 # ------------------------------------ | |
113 | |
22 | 114 # DO NOT DELETE |
115 | |
116 engine.o: v09.h | |
117 io.o: v09.h | |
118 trace.o: v09.h | |
119 v09.o: v09.h |