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