57
|
1 #
|
|
2 # Makefile examples SBC09/Sim6809
|
|
3 #
|
|
4 # created 1994 by L.C. Benschop
|
|
5 # 2014-06-25 - J.E. Klasek
|
|
6 #
|
|
7 # copyleft (c) 1994-2014 by the sbc09 team, see AUTHORS for more details.
|
|
8 # license: GNU General Public License version 2, see LICENSE for more details.
|
|
9 #
|
|
10
|
|
11 ASM=../a09
|
|
12
|
|
13 PROGS=basic fbasic
|
|
14
|
|
15 OTHER=floatnum.inc makeflot
|
|
16
|
|
17
|
|
18 all: $(ASM) $(PROGS)
|
|
19
|
|
20 $(ASM):
|
|
21 $(MAKE) -c ../src a09 install
|
|
22
|
|
23 # ------------------------------------
|
|
24 # rules
|
|
25
|
|
26 .SUFFIXES: .asm
|
|
27
|
|
28 .asm:
|
|
29 $(ASM) -l $@.lst $<
|
|
30
|
|
31 # ------------------------------------
|
|
32
|
|
33 basic: basic.asm
|
|
34
|
|
35
|
|
36 fbasic: fbasic.asm floatnum.inc
|
|
37 $(ASM) -l $@.lst fbasic.asm
|
|
38
|
|
39 floatnum.inc: floatnum.src makeflot
|
|
40 ./makeflot < floatnum.src > floatnum.inc
|
|
41
|
|
42 makeflot: makeflot.c
|
|
43
|
|
44
|
|
45 # ------------------------------------
|
|
46
|
|
47 cleanall: clean
|
|
48 rm -f $(PROGS) $(OTHER)
|
|
49
|
|
50 clean:
|
|
51 rm -f core *.BAK *.lst $(PROGS)
|
|
52
|