57
|
1 #
|
|
2 # Makefile examples SBC09/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 ASM=../a09
|
|
13
|
|
14 EXAMPLES=asmtest bench09 bin2dec cond09 crc16 crc32 ef09 erat-sieve input printval test09 uslash
|
|
15
|
|
16
|
|
17
|
|
18 all: $(ASM) $(EXAMPLES)
|
|
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 asmtest: asmtest.asm
|
|
34
|
|
35 bench09: bench09.asm
|
|
36
|
|
37 bin2dec: bin2dec.asm
|
|
38
|
|
39 cond09: cond09.asm
|
|
40
|
|
41 crc16: crc16.asm
|
|
42
|
|
43 crc32: crc32.asm
|
|
44
|
|
45 ef09: ef09.asm
|
|
46
|
|
47 erat-sieve: erat-sieve.asm
|
|
48
|
|
49 printval: printval.asm
|
|
50
|
|
51 input: input.asm
|
|
52
|
|
53 test09: test09.asm
|
|
54
|
|
55 uslash: uslash.asm
|
|
56
|
|
57
|
|
58
|
|
59 # ------------------------------------
|
|
60
|
|
61 cleanall: clean
|
|
62
|
|
63 clean:
|
|
64 rm -f core *.BAK *.lst $(EXAMPLES)
|
|
65
|