1 |
# Makefile for Frodo (RISC OS with GCC) |
2 |
|
3 |
## Version information |
4 |
VERSION = 4 |
5 |
REVISION = 2 |
6 |
|
7 |
CXX = gcc |
8 |
CFLAGS = -O2 |
9 |
CFLAGSO = -O3 |
10 |
SCFLAGS = -O2 -DFRODO_SC |
11 |
SCFLAGSO = -O3 -DFRODO_SC |
12 |
|
13 |
LIBRARIES = GCC:o.libgcc C:o.stubs |
14 |
LINK = drlink |
15 |
ASS = as |
16 |
|
17 |
## Files |
18 |
OBJS = o.Prefs o.REU o.IEC o.1541fs o.1541d64 o.1541t64 o.1541job o.SAM o.ROlib |
19 |
SLOBJS = $(OBJS) o.C64 o.CPUC64 o.VIC o.CIA o.CPU1541 o.Display o.SID o.main o.AcornGUI |
20 |
SCOBJS = $(OBJS) o.C64_SC o.CPUC64_SC o.VIC_SC o.CIA_SC o.CPU1541_SC o.CPU_common o.Display_SC\ |
21 |
o.main_SC o.SID_SC o.AcornGUI_SC |
22 |
|
23 |
all: Frodo FrodoSC |
24 |
|
25 |
Frodo: $(SLOBJS) |
26 |
$(LINK) -o Frodo $(LIBRARIES) $(SLOBJS) $(LDFLAGS) |
27 |
|
28 |
FrodoPC: $(PCOBJS) |
29 |
$(LINK) -o FrodoPC $(LIBRARIES) $(PCOBJS) $(LDFLAGS) |
30 |
|
31 |
|
32 |
# SC objects |
33 |
o.C64_SC: cc.C64_SC h.C64 i.C64_Acorn h.CPUC64 h.CPU1541 h.VIC h.SID h.CIA h.REU \ |
34 |
h.IEC h.1541job h.Display h.Prefs h.ROlib h.AcornGUI i.OldSnap |
35 |
$(CXX) $(INCLUDES) $(SCFLAGS) -c C64_SC.cc |
36 |
|
37 |
o.CPUC64_SC: cc.CPUC64_SC h.CPUC64 i.CPU_emulcycle h.CPU_common h.C64 h.VIC h.SID h.CIA \ |
38 |
h.REU h.IEC h.Display h.Version h.ROlib |
39 |
$(CXX) $(INCLUDES) $(SCFLAGSO) -c CPUC64_SC.cc |
40 |
|
41 |
o.CPU1541_SC: cc.CPU1541_SC h.CPU1541 i.CPU_emulcycle h.CPU_common h.1541job h.C64 h.CIA \ |
42 |
h.Display h.ROlib |
43 |
$(CXX) $(INCLUDES) $(SCFLAGSO) -c CPU1541_SC.cc |
44 |
|
45 |
o.VIC_SC: cc.VIC_SC h.VIC h.C64 h.CPUC64 h.Display h.Prefs h.ROlib |
46 |
$(CXX) $(INCLUDES) $(SCFLAGSO) -c VIC_SC.cc |
47 |
|
48 |
o.CIA_SC: cc.CIA_SC h.CIA h.CPUC64 h.CPU1541 h.VIC h.Prefs |
49 |
$(CXX) $(INCLUDES) $(SCFLAGSO) -c CIA_SC.cc |
50 |
|
51 |
## These were added for RISC OS -- same source code, but different object files needed! |
52 |
o.main_SC: cc.main_SC cc.main h.main i.main_Acorn h.C64 h.Display h.Prefs h.SAM h.ROlib\ |
53 |
h.AcornGUI |
54 |
$(CXX) $(INCLUDES) $(SCFLAGS) -c main_SC.cc |
55 |
|
56 |
o.Display_SC: cc.Display_SC cc.Display h.Display i.Display_Acorn h.main h.Prefs h.Version\ |
57 |
h.ROlib h.C64 h.AcornGUI h.VIC |
58 |
$(CXX) $(INCLUDES) $(SCFLAGS) -c Display_SC.cc |
59 |
|
60 |
o.SID_SC: cc.SID_SC cc.SID h.SID i.SID_Acorn h.Prefs h.ROlib h.C64 i.FixPoint |
61 |
$(CXX) $(INCLUDES) $(SCFLAGSO) -c SID_SC.cc |
62 |
|
63 |
o.AcornGUI_SC: cc.AcornGUI_SC cc.AcornGUI h.AcornGUI h.ROlib h.main h.Prefs h.C64 h.VIC\ |
64 |
h.Version |
65 |
$(CXX) $(INCLUDES) $(SCFLAGS) -c AcornGUI_SC.cc |
66 |
|
67 |
## Dependencies |
68 |
o.main: cc.main h.main i.main_Acorn h.C64 h.Display h.Prefs h.SAM h.ROlib h.AcornGUI |
69 |
$(CXX) $(INCLUDES) $(CFLAGS) -c main.cc |
70 |
|
71 |
o.C64: cc.C64 h.C64 i.C64_Acorn h.CPUC64 h.CPU1541 h.VIC h.SID h.CIA \ |
72 |
h.REU h.IEC h.1541job h.Display h.Prefs h.ROlib h.AcornGUI i.OldSnap |
73 |
$(CXX) $(INCLUDES) $(CFLAGS) -c C64.cc |
74 |
|
75 |
o.Display: cc.Display h.Display i.Display_Acorn h.main h.Prefs h.Version h.ROlib h.C64\ |
76 |
h.AcornGUI h.VIC |
77 |
$(CXX) $(INCLUDES) $(CFLAGS) -c Display.cc |
78 |
|
79 |
o.Prefs: cc.Prefs h.Prefs h.Display h.main h.ROlib |
80 |
$(CXX) $(INCLUDES) $(CFLAGS) -c Prefs.cc |
81 |
|
82 |
o.CPUC64: cc.CPUC64 h.CPUC64 i.CPU_emulline h.C64 h.VIC h.SID h.CIA h.REU h.IEC \ |
83 |
h.Display h.Version h.ROlib |
84 |
$(CXX) $(INCLUDES) $(CFLAGSO) -c CPUC64.cc |
85 |
|
86 |
o.CPU1541: cc.CPU1541 h.CPU1541 i.CPU_emulline h.1541job h.C64 h.CIA h.Display h.ROlib |
87 |
$(CXX) $(INCLUDES) $(CFLAGSO) -c CPU1541.cc |
88 |
|
89 |
o.CPU_common: cc.CPU_common h.CPU_common |
90 |
$(CXX) $(INCLUDES) $(CFLAGS) -c CPU_common.cc |
91 |
|
92 |
o.VIC: cc.VIC h.VIC h.C64 h.CPUC64 h.Display h.Prefs h.ROlib i.el_Acorn |
93 |
$(CXX) $(INCLUDES) $(CFLAGSO) -c VIC.cc |
94 |
|
95 |
o.SID: cc.SID h.SID i.SID_Acorn h.Prefs h.ROlib h.C64 i.FixPoint |
96 |
$(CXX) $(INCLUDES) $(CFLAGSO) -c SID.cc |
97 |
|
98 |
o.CIA: cc.CIA h.CIA h.CPUC64 h.CPU1541 h.VIC h.Prefs |
99 |
$(CXX) $(INCLUDES) $(CFLAGSO) -c CIA.cc |
100 |
|
101 |
o.IEC: cc.IEC h.IEC h.1541fs h.1541d64 h.1541t64 h.Prefs h.Display h.ROlib |
102 |
$(CXX) $(INCLUDES) $(CFLAGS) -c IEC.cc |
103 |
|
104 |
o.1541fs: cc.1541fs h.1541fs h.IEC h.main h.Prefs h.ROlib |
105 |
$(CXX) $(INCLUDES) $(CFLAGS) -c 1541fs.cc |
106 |
|
107 |
h.1541fs: h.IEC |
108 |
|
109 |
o.1541d64: cc.1541d64 h.1541d64 h.IEC h.Prefs |
110 |
$(CXX) $(INCLUDES) $(CFLAGS) -c 1541d64.cc |
111 |
|
112 |
h.1541d64: h.IEC |
113 |
|
114 |
o.1541t64: cc.1541t64 h.1541t64 h.IEC h.Prefs |
115 |
$(CXX) $(INCLUDES) $(CFLAGS) -c 1541t64.cc |
116 |
|
117 |
h.1541t64: h.IEC |
118 |
|
119 |
o.1541job: cc.1541job h.1541job h.CPU1541 h.Prefs |
120 |
$(CXX) $(INCLUDES) $(CFLAGS) -c 1541job.cc |
121 |
|
122 |
o.REU: cc.REU h.REU h.CPUC64 h.Prefs |
123 |
$(CXX) $(INCLUDES) $(CFLAGS) -c REU.cc |
124 |
|
125 |
o.SAM: cc.SAM h.SAM h.C64 h.CPUC64 h.CPU1541 h.VIC h.SID h.CIA |
126 |
$(CXX) $(INCLUDES) $(CFLAGS) -c SAM.cc |
127 |
|
128 |
o.ROlib: s.ROlib |
129 |
$(ASS) -o o.ROlib s.ROlib |
130 |
|
131 |
o.AcornGUI: cc.AcornGUI h.AcornGUI h.ROlib h.main h.Display h.Prefs h.Version h.C64 h.VIC |
132 |
$(CXX) $(INCLUDES) $(CFLAGS) -c AcornGUI.cc |