-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
41 lines (28 loc) · 976 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
bfc64: main.o parser.o symbol.o template.o compiler.o optimizer.o
g++ main.o parser.o symbol.o template.o compiler.o optimizer.o -o bfc64
parser.o: processor/parser.cpp
g++ -c processor/parser.cpp
compiler.o: processor/compiler.cpp
g++ -c processor/compiler.cpp
optimizer.o: processor/optimizer.cpp
g++ -c processor/optimizer.cpp
symbol.o: processor/symbols/symbol.cpp
g++ -c processor/symbols/symbol.cpp
main.o: main.cpp
g++ -c main.cpp
template.o: processor/arch/template.cpp
g++ -c processor/arch/template.cpp
processor/arch/template.cpp: processor/arch/templateGen.py processor/arch/c64/* processor/arch/template.cpp.template
python processor/arch/templateGen.py processor/arch/c64/
a.asm: bfc64 tests/test.b
./bfc64 tests/test.b
a.prg: a.asm
kickass -showmem a.asm
test: a.prg
x64sc -autostart $(PWD)/a.prg
docs: docs/main.tex
xelatex docs/main.tex
install: bfc64
cp bfc64 /usr/bin/
clean:
rm *.o bfc64 processor/arch/template.cpp a.asm a.prg