a9a5a6e0 |
1 | CFLAGS = -Wall |
0e11c502 |
2 | ifdef CONFIG_FILE |
3 | CFLAGS += -DCONFIG_FILE=\"$(CONFIG_FILE)\" |
4 | endif |
cc68a136 |
5 | |
7336a99a |
6 | all : cyclone.s |
cc68a136 |
7 | |
8 | cyclone.s : Cyclone.exe |
9 | ./Cyclone.exe |
10 | |
11 | Cyclone.exe : Main.o Ea.o OpAny.o OpArith.o OpBranch.o OpLogic.o Disa.o OpMove.o |
12 | $(CC) $^ -o $@ -lstdc++ |
13 | |
14 | Main.o : ../Main.cpp ../app.h |
15 | $(CC) $(CFLAGS) ../Main.cpp -c -o $@ |
16 | |
17 | Ea.o : ../Ea.cpp ../app.h |
18 | $(CC) $(CFLAGS) ../Ea.cpp -c -o $@ |
19 | |
20 | OpAny.o : ../OpAny.cpp ../app.h |
21 | $(CC) $(CFLAGS) ../OpAny.cpp -c -o $@ |
22 | |
23 | OpArith.o : ../OpArith.cpp ../app.h |
24 | $(CC) $(CFLAGS) ../OpArith.cpp -c -o $@ |
25 | |
26 | OpBranch.o : ../OpBranch.cpp ../app.h |
27 | $(CC) $(CFLAGS) ../OpBranch.cpp -c -o $@ |
28 | |
29 | OpLogic.o : ../OpLogic.cpp ../app.h |
30 | $(CC) $(CFLAGS) ../OpLogic.cpp -c -o $@ |
31 | |
32 | OpMove.o : ../OpMove.cpp ../app.h |
33 | $(CC) $(CFLAGS) ../OpMove.cpp -c -o $@ |
34 | |
35 | Disa.o : ../Disa/Disa.c ../Disa/Disa.h |
36 | $(CC) $(CFLAGS) ../Disa/Disa.c -c -o $@ |
37 | |
38 | ../app.h : ../config.h |
39 | |
40 | clean : |
41 | $(RM) *.o Cyclone.exe Cyclone.s |
42 | |