Added long jumps and calls. PICOBIT can now be assembled.
[sixpic.git] / makefile
blob9072e59ae72aa6527d992b867fd4e25e72b45375
1 .SUFFIXES:
2 .SUFFIXES: .c .hex .tmp
4 all: sixpic
6 sixpic: six-comp.o1 pic18-sim.o1 utilities.o1 ast.o1 operators.o1 cte.o1 parser.o1 cfg.o1 optimizations.o1 code-generation.o1 register-allocation.o1 pic18.o1 asm.o1
8 six-comp.o1: six-comp.scm
9 rm $@ || true
10 gsc -debug $<
12 pic18-sim.o1: pic18-sim.scm
13 rm $@ || true
14 gsc -debug $<
16 utilities.o1: utilities.scm
17 rm $@ || true
18 gsc -debug $<
20 ast.o1: ast.scm
21 rm $@ || true
22 gsc -debug $<
24 operators.o1: operators.scm
25 rm $@ || true
26 gsc -debug $<
28 cte.o1: cte.scm
29 rm $@ || true
30 gsc -debug $<
32 parser.o1: parser.scm
33 rm $@ || true
34 gsc -debug $<
36 cfg.o1: cfg.scm
37 rm $@ || true
38 gsc -debug $<
40 optimizations.o1: optimizations.scm
41 rm $@ || true
42 gsc -debug $<
44 code-generation.o1: code-generation.scm
45 rm $@ || true
46 gsc -debug $<
48 register-allocation.o1: register-allocation.scm
49 rm $@ || true
50 gsc -debug $<
52 pic18.o1: pic18.scm
53 rm $@ || true
54 gsc -debug $<
56 asm.o1: asm.scm
57 rm $@ || true
58 gsc -debug $<
60 # .scm.o1: # TODO doesn't work
61 # rm $@ || true
62 # gsc -debug $<
64 .c.hex:
65 gsi six-comp.scm $*.c
66 rm -f $*.c.tmp
68 checks:
69 cd tests && make checks
71 clean:
72 rm -rf *.c.tmp *.o1