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