Mercurial > hg > Members > kono > os9 > sbc09
annotate src/Makefile @ 162:d3a9f5f7befb
fix TL1 PIC
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 09 Apr 2019 22:49:44 +0900 |
parents | 91447c3ccd58 |
children | 3f8bbec566b3 |
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 |
154 | 14 # use this on Linux |
157 | 15 # CFLAGS=-g -DTERM_CONTROL \ |
16 # -std=c99 -D_POSIX_C_SOURCE=1 -D_XOPEN_SOURCE=1 -D_POSIX_SOURCE=200809L -D_GNU_SOURCE=1 \ | |
17 # -Dd_namlen=d_reclen | |
161 | 18 CFLAGS=-g -O2 -DTERM_CONTROL |
0 | 19 |
162 | 20 V09FLAGS= -DUSE_TERMIOS -DNOFMEMOPEN -DBIG_ENDIAN |
0 | 21 |
22 | |
23 SIM_BIN=v09s v09st | |
24 | |
25 APPS=mon2.s | |
26 | |
27 # will be installed to ".." | |
22 | 28 BIN=a09 v09 v09c d09 $(SIM_BIN) v09.rom |
0 | 29 |
51 | 30 TARGETS=$(BIN) $(APPS) |
0 | 31 |
32 OTHER=monitor.s makerom | |
33 | |
34 all: $(TARGETS) | |
35 | |
36 # ------------------------------------ | |
37 | |
22 | 38 a09 : a09.o os9crc.o |
39 $(CC) $(CFLAGS) $(V09FLAGS) a09.o os9crc.o -o $@ | |
0 | 40 |
51 | 41 v09: v09.o engine.o io.o d09.o trace.o vdisk.o |
56 | 42 $(CC) -o v09 $(CFLAGS) v09.o engine.o io.o d09.o trace.o vdisk.o |
0 | 43 |
20 | 44 # with Coco MMU |
51 | 45 v09c: v09.c engine.c io.c d09.o trace.o vdisk.o |
46 | 46 $(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 | 47 |
22 | 48 a09.o : a09.c |
49 $(CC) -c $(CFLAGS) $(V09FLAGS) $< | |
50 | |
51 v09.o: v09.c | |
71 | 52 $(CC) -c $(CFLAGS) -DUSE_VDISK $(V09FLAGS) $< |
0 | 53 |
22 | 54 d09 : d09.c |
55 $(CC) -Wno-format-security $(CFLAGS) $(V09FLAGS) $< -o $@ | |
56 | |
57 d09.o : d09.c | |
58 $(CC) -c -DNO_MAIN -Wno-format-security $(CFLAGS) $(V09FLAGS) $< | |
0 | 59 |
22 | 60 engine.o: engine.c |
61 $(CC) -c $(CFLAGS) $(V09FLAGS) $< | |
0 | 62 |
22 | 63 io.o: io.c |
56 | 64 $(CC) -c $(CFLAGS) -DUSE_VDISK $(V09FLAGS) $< |
0 | 65 |
44
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
33
diff
changeset
|
66 vdisk.o: vdisk.c v09.h |
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
33
diff
changeset
|
67 $(CC) -c $(CFLAGS) $(V09FLAGS) $< |
b26c23331d02
add more function on vdisk
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
33
diff
changeset
|
68 |
20 | 69 trace.o: trace.c v09.h |
22 | 70 $(CC) -c $(CFLAGS) $(V09FLAGS) $< |
20 | 71 |
0 | 72 v09.rom: makerom monitor.s |
73 ./makerom <monitor.s | |
74 | |
75 monitor.s: monitor.asm | |
76 ./a09 -s monitor.s -l monitor.lst monitor.asm | |
77 | |
78 mon2.s: mon2.asm | |
79 ./a09 -s mon2.s -l mon2.lst mon2.asm | |
80 | |
81 makerom: makerom.c | |
82 $(CC) -o makerom makerom.c | |
83 | |
84 # ------------------------------------ | |
85 | |
86 v09s: v09s.c | |
22 | 87 $(CC) $(CFLAGS) -o $@ $< |
0 | 88 |
89 v09st: v09s.c | |
90 $(CC) $(CFLAGS) -DTRACE -o $@ $< | |
91 | |
92 # ------------------------------------ | |
93 | |
94 install: | |
95 -for bin in $(BIN); do \ | |
96 [ -r $$bin ] && cp -p $$bin .. && echo "installing ../$$bin ..." ;\ | |
97 done ;\ | |
98 exit 0 | |
99 | |
100 # ------------------------------------ | |
101 | |
102 cleanall: clean | |
33 | 103 rm -rf $(TARGETS) $(OTHER) |
104 (cd ..; rm -rf $(BIN) ) | |
0 | 105 |
20 | 106 realclean: cleanall |
107 | |
0 | 108 clean: |
20 | 109 rm -rf core *.BAK *.o *.lst *.dSYM |
0 | 110 |
111 # ------------------------------------ | |
112 | |
22 | 113 # DO NOT DELETE |
114 | |
115 engine.o: v09.h | |
116 io.o: v09.h | |
117 trace.o: v09.h | |
118 v09.o: v09.h |