23 |
|
LIBS = @LIBS@ |
24 |
|
SYSSRCS = @SYSSRCS@ |
25 |
|
CPUSRCS = @CPUSRCS@ |
26 |
+ |
BLESS = @BLESS@ |
27 |
|
INSTALL = @INSTALL@ |
28 |
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s |
29 |
|
INSTALL_DATA = @INSTALL_DATA@ |
62 |
|
|
63 |
|
$(APP): $(OBJ_DIR) $(OBJS) |
64 |
|
$(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS) |
65 |
+ |
$(BLESS) $(APP) |
66 |
|
|
67 |
|
modules: |
68 |
|
cd Linux/NetDriver; make |
87 |
|
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
88 |
|
|
89 |
|
clean: mostlyclean |
90 |
< |
rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h |
90 |
> |
rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h |
91 |
|
|
92 |
|
distclean: clean |
93 |
|
rm -rf $(OBJ_DIR) |
110 |
|
$(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o |
111 |
|
$(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
112 |
|
$(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
113 |
+ |
$(OBJ_DIR)/gencomp: $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
114 |
+ |
$(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
115 |
+ |
|
116 |
|
cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k |
117 |
|
$(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp |
118 |
|
cpustbl.cpp: cpuemu.cpp |
119 |
+ |
cpustbl_nf.cpp: cpustbl.cpp |
120 |
+ |
compstbl.cpp: compemu.cpp |
121 |
|
cputbl.h: cpuemu.cpp |
122 |
+ |
comptbl.h: compemu.cpp |
123 |
|
|
124 |
|
cpuemu.cpp: $(OBJ_DIR)/gencpu |
125 |
|
$(OBJ_DIR)/gencpu |
126 |
|
|
127 |
+ |
compemu.cpp: $(OBJ_DIR)/gencomp |
128 |
+ |
$(OBJ_DIR)/gencomp |
129 |
+ |
|
130 |
+ |
$(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp |
131 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@ |
132 |
+ |
|
133 |
+ |
$(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h |
134 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@ |
135 |
+ |
|
136 |
|
$(OBJ_DIR)/cpuemu1.o: cpuemu.cpp |
137 |
|
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@ |
138 |
|
$(OBJ_DIR)/cpuemu2.o: cpuemu.cpp |
150 |
|
$(OBJ_DIR)/cpuemu8.o: cpuemu.cpp |
151 |
|
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@ |
152 |
|
|
153 |
+ |
$(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp |
154 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
155 |
+ |
$(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp |
156 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
157 |
+ |
$(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp |
158 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
159 |
+ |
$(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp |
160 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
161 |
+ |
$(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp |
162 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
163 |
+ |
$(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp |
164 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
165 |
+ |
$(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp |
166 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
167 |
+ |
$(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp |
168 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
169 |
+ |
|
170 |
+ |
$(OBJ_DIR)/compemu1.o: compemu.cpp |
171 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@ |
172 |
+ |
$(OBJ_DIR)/compemu2.o: compemu.cpp |
173 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@ |
174 |
+ |
$(OBJ_DIR)/compemu3.o: compemu.cpp |
175 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@ |
176 |
+ |
$(OBJ_DIR)/compemu4.o: compemu.cpp |
177 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@ |
178 |
+ |
$(OBJ_DIR)/compemu5.o: compemu.cpp |
179 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@ |
180 |
+ |
$(OBJ_DIR)/compemu6.o: compemu.cpp |
181 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@ |
182 |
+ |
$(OBJ_DIR)/compemu7.o: compemu.cpp |
183 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@ |
184 |
+ |
$(OBJ_DIR)/compemu8.o: compemu.cpp |
185 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@ |
186 |
+ |
|
187 |
|
cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
188 |
|
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s |
189 |
|
$(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@ |
221 |
|
$(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@ |
222 |
|
rm -f cputmp8.s |
223 |
|
|
224 |
+ |
cpufast_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
225 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp_nf.s |
226 |
+ |
$(OBJ_DIR)/cpuopti <cputmp_nf.s >$@ || mv cputmp_nf.s $@ |
227 |
+ |
rm -f cputmp_nf.s |
228 |
+ |
cpufast1_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
229 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp1_nf.s |
230 |
+ |
$(OBJ_DIR)/cpuopti <cputmp1_nf.s >$@ || mv cputmp1_nf.s $@ |
231 |
+ |
rm -f cputmp1_nf.s |
232 |
+ |
cpufast2_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
233 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp2_nf.s |
234 |
+ |
$(OBJ_DIR)/cpuopti <cputmp2_nf.s >$@ || mv cputmp2_nf.s $@ |
235 |
+ |
rm -f cputmp2_nf.s |
236 |
+ |
cpufast3_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
237 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp3_nf.s |
238 |
+ |
$(OBJ_DIR)/cpuopti <cputmp3_nf.s >$@ || mv cputmp3_nf.s $@ |
239 |
+ |
rm -f cputmp3_nf.s |
240 |
+ |
cpufast4_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
241 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp4_nf.s |
242 |
+ |
$(OBJ_DIR)/cpuopti <cputmp4_nf.s >$@ || mv cputmp4_nf.s $@ |
243 |
+ |
rm -f cputmp4_nf.s |
244 |
+ |
cpufast5_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
245 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp5_nf.s |
246 |
+ |
$(OBJ_DIR)/cpuopti <cputmp5_nf.s >$@ || mv cputmp5_nf.s $@ |
247 |
+ |
rm -f cputmp5_nf.s |
248 |
+ |
cpufast6_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
249 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp6_nf.s |
250 |
+ |
$(OBJ_DIR)/cpuopti <cputmp6_nf.s >$@ || mv cputmp6_nf.s $@ |
251 |
+ |
rm -f cputmp6_nf.s |
252 |
+ |
cpufast7_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
253 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp7_nf.s |
254 |
+ |
$(OBJ_DIR)/cpuopti <cputmp7_nf.s >$@ || mv cputmp7_nf.s $@ |
255 |
+ |
rm -f cputmp7_nf.s |
256 |
+ |
cpufast8_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
257 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp8_nf.s |
258 |
+ |
$(OBJ_DIR)/cpuopti <cputmp8_nf.s >$@ || mv cputmp8_nf.s $@ |
259 |
+ |
rm -f cputmp8_nf.s |
260 |
+ |
|
261 |
|
#------------------------------------------------------------------------- |
262 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |