2 |
|
|
3 |
|
## System specific configuration |
4 |
|
@SET_MAKE@ |
5 |
+ |
SHELL = /bin/sh |
6 |
|
|
7 |
|
prefix = @prefix@ |
8 |
|
exec_prefix = @exec_prefix@ |
11 |
|
mandir = @mandir@ |
12 |
|
man1dir = $(mandir)/man1 |
13 |
|
|
14 |
+ |
DESTDIR = |
15 |
+ |
|
16 |
|
CC = @CC@ |
17 |
|
CXX = @CXX@ |
18 |
|
CFLAGS = @CFLAGS@ |
28 |
|
INSTALL_DATA = @INSTALL_DATA@ |
29 |
|
|
30 |
|
## Files |
31 |
< |
SRCS = ../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \ |
32 |
< |
../macos_util.cpp ../xpram.cpp ../timer.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \ |
33 |
< |
../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp ../audio.cpp ../user_strings.cpp \ |
34 |
< |
main_unix.cpp prefs_unix.cpp sys_unix.cpp xpram_unix.cpp timer_unix.cpp clip_unix.cpp \ |
35 |
< |
serial_unix.cpp video_x.cpp \ |
31 |
> |
SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \ |
32 |
> |
sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \ |
33 |
> |
../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \ |
34 |
> |
timer_unix.cpp clip_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \ |
35 |
> |
../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \ |
36 |
> |
video_x.cpp vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \ |
37 |
> |
../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \ |
38 |
|
$(SYSSRCS) $(CPUSRCS) |
39 |
|
APP = BasiliskII |
40 |
|
|
41 |
|
## Rules |
42 |
< |
.PHONY: modules install uninstall clean distclean depend |
42 |
> |
.PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep |
43 |
> |
.SUFFIXES: |
44 |
> |
.SUFFIXES: .c .cpp .s .o .h |
45 |
|
|
46 |
< |
default: $(APP) |
46 |
> |
all: $(APP) |
47 |
|
|
48 |
|
OBJ_DIR = obj |
49 |
|
$(OBJ_DIR):: |
65 |
|
modules: |
66 |
|
cd Linux/NetDriver; make |
67 |
|
|
68 |
< |
install: $(APP) |
69 |
< |
$(INSTALL_PROGRAM) $(APP) $(bindir) |
70 |
< |
$(INSTALL_DATA) $(APP).1 $(man1dir) |
71 |
< |
$(INSTALL) -d $(datadir)/$(APP) |
72 |
< |
$(INSTALL_DATA) keycodes $(datadir)/$(APP) |
68 |
> |
install: $(APP) installdirs |
69 |
> |
$(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP) |
70 |
> |
-$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1 |
71 |
> |
$(INSTALL_DATA) keycodes $(DESTDIR)$(datadir)/$(APP)/keycodes |
72 |
> |
$(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices |
73 |
> |
|
74 |
> |
installdirs: |
75 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP) |
76 |
|
|
77 |
|
uninstall: |
78 |
< |
-rm -f $(bindir)/$(APP) |
79 |
< |
-rm -f $(man1dir)/$(APP).1 |
80 |
< |
-rm -rf $(datadir)/$(APP) |
81 |
< |
|
82 |
< |
clean: |
83 |
< |
-rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
84 |
< |
-rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h |
78 |
> |
rm -f $(DESTDIR)$(bindir)/$(APP) |
79 |
> |
rm -f $(DESTDIR)$(man1dir)/$(APP).1 |
80 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes |
81 |
> |
rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices |
82 |
> |
rmdir $(DESTDIR)$(datadir)/$(APP) |
83 |
> |
|
84 |
> |
mostlyclean: |
85 |
> |
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak |
86 |
> |
|
87 |
> |
clean: mostlyclean |
88 |
> |
rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h |
89 |
|
|
90 |
|
distclean: clean |
91 |
< |
-rm -rf $(OBJ_DIR) |
92 |
< |
-rm -f Makefile |
93 |
< |
-rm -f config.cache config.log config.status config.h |
91 |
> |
rm -rf $(OBJ_DIR) |
92 |
> |
rm -f Makefile |
93 |
> |
rm -f config.cache config.log config.status config.h |
94 |
|
|
95 |
|
depend dep: |
96 |
< |
makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp |
96 |
> |
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
97 |
|
|
98 |
|
$(OBJ_DIR)/%.o : %.c |
99 |
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@ |
107 |
|
$(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o |
108 |
|
$(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o |
109 |
|
$(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
110 |
< |
$(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
110 |
> |
$(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
111 |
> |
$(OBJ_DIR)/gencomp: $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
112 |
> |
$(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o |
113 |
> |
|
114 |
|
cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k |
115 |
|
$(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp |
99 |
– |
cpuemu.cpp: $(OBJ_DIR)/gencpu |
100 |
– |
$(OBJ_DIR)/gencpu |
116 |
|
cpustbl.cpp: cpuemu.cpp |
117 |
+ |
cpustbl_nf.cpp: cpustbl.cpp |
118 |
+ |
compstbl.cpp: compemu.cpp |
119 |
|
cputbl.h: cpuemu.cpp |
120 |
+ |
comptbl.h: compemu.cpp |
121 |
+ |
|
122 |
+ |
cpuemu.cpp: $(OBJ_DIR)/gencpu |
123 |
+ |
$(OBJ_DIR)/gencpu |
124 |
+ |
|
125 |
+ |
compemu.cpp: $(OBJ_DIR)/gencomp |
126 |
+ |
$(OBJ_DIR)/gencomp |
127 |
+ |
|
128 |
+ |
$(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp |
129 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@ |
130 |
+ |
|
131 |
+ |
$(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h |
132 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@ |
133 |
+ |
|
134 |
+ |
$(OBJ_DIR)/cpuemu1.o: cpuemu.cpp |
135 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@ |
136 |
+ |
$(OBJ_DIR)/cpuemu2.o: cpuemu.cpp |
137 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@ |
138 |
+ |
$(OBJ_DIR)/cpuemu3.o: cpuemu.cpp |
139 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@ |
140 |
+ |
$(OBJ_DIR)/cpuemu4.o: cpuemu.cpp |
141 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@ |
142 |
+ |
$(OBJ_DIR)/cpuemu5.o: cpuemu.cpp |
143 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@ |
144 |
+ |
$(OBJ_DIR)/cpuemu6.o: cpuemu.cpp |
145 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@ |
146 |
+ |
$(OBJ_DIR)/cpuemu7.o: cpuemu.cpp |
147 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@ |
148 |
+ |
$(OBJ_DIR)/cpuemu8.o: cpuemu.cpp |
149 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@ |
150 |
+ |
|
151 |
+ |
$(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp |
152 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
153 |
+ |
$(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp |
154 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
155 |
+ |
$(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp |
156 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
157 |
+ |
$(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp |
158 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
159 |
+ |
$(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp |
160 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
161 |
+ |
$(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp |
162 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
163 |
+ |
$(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp |
164 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
165 |
+ |
$(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp |
166 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@ |
167 |
+ |
|
168 |
+ |
$(OBJ_DIR)/compemu1.o: compemu.cpp |
169 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@ |
170 |
+ |
$(OBJ_DIR)/compemu2.o: compemu.cpp |
171 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@ |
172 |
+ |
$(OBJ_DIR)/compemu3.o: compemu.cpp |
173 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@ |
174 |
+ |
$(OBJ_DIR)/compemu4.o: compemu.cpp |
175 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@ |
176 |
+ |
$(OBJ_DIR)/compemu5.o: compemu.cpp |
177 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@ |
178 |
+ |
$(OBJ_DIR)/compemu6.o: compemu.cpp |
179 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@ |
180 |
+ |
$(OBJ_DIR)/compemu7.o: compemu.cpp |
181 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@ |
182 |
+ |
$(OBJ_DIR)/compemu8.o: compemu.cpp |
183 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@ |
184 |
+ |
|
185 |
|
cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
186 |
|
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s |
187 |
|
$(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@ |
188 |
|
rm -f cputmp.s |
189 |
+ |
cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
190 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s |
191 |
+ |
$(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@ |
192 |
+ |
rm -f cputmp1.s |
193 |
+ |
cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
194 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s |
195 |
+ |
$(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@ |
196 |
+ |
rm -f cputmp2.s |
197 |
+ |
cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
198 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s |
199 |
+ |
$(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@ |
200 |
+ |
rm -f cputmp3.s |
201 |
+ |
cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
202 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s |
203 |
+ |
$(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@ |
204 |
+ |
rm -f cputmp4.s |
205 |
+ |
cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
206 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s |
207 |
+ |
$(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@ |
208 |
+ |
rm -f cputmp5.s |
209 |
+ |
cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
210 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s |
211 |
+ |
$(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@ |
212 |
+ |
rm -f cputmp6.s |
213 |
+ |
cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
214 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s |
215 |
+ |
$(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@ |
216 |
+ |
rm -f cputmp7.s |
217 |
+ |
cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
218 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s |
219 |
+ |
$(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@ |
220 |
+ |
rm -f cputmp8.s |
221 |
+ |
|
222 |
+ |
cpufast_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
223 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp_nf.s |
224 |
+ |
$(OBJ_DIR)/cpuopti <cputmp_nf.s >$@ || mv cputmp_nf.s $@ |
225 |
+ |
rm -f cputmp_nf.s |
226 |
+ |
cpufast1_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
227 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp1_nf.s |
228 |
+ |
$(OBJ_DIR)/cpuopti <cputmp1_nf.s >$@ || mv cputmp1_nf.s $@ |
229 |
+ |
rm -f cputmp1_nf.s |
230 |
+ |
cpufast2_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
231 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp2_nf.s |
232 |
+ |
$(OBJ_DIR)/cpuopti <cputmp2_nf.s >$@ || mv cputmp2_nf.s $@ |
233 |
+ |
rm -f cputmp2_nf.s |
234 |
+ |
cpufast3_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
235 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp3_nf.s |
236 |
+ |
$(OBJ_DIR)/cpuopti <cputmp3_nf.s >$@ || mv cputmp3_nf.s $@ |
237 |
+ |
rm -f cputmp3_nf.s |
238 |
+ |
cpufast4_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
239 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp4_nf.s |
240 |
+ |
$(OBJ_DIR)/cpuopti <cputmp4_nf.s >$@ || mv cputmp4_nf.s $@ |
241 |
+ |
rm -f cputmp4_nf.s |
242 |
+ |
cpufast5_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
243 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp5_nf.s |
244 |
+ |
$(OBJ_DIR)/cpuopti <cputmp5_nf.s >$@ || mv cputmp5_nf.s $@ |
245 |
+ |
rm -f cputmp5_nf.s |
246 |
+ |
cpufast6_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
247 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp6_nf.s |
248 |
+ |
$(OBJ_DIR)/cpuopti <cputmp6_nf.s >$@ || mv cputmp6_nf.s $@ |
249 |
+ |
rm -f cputmp6_nf.s |
250 |
+ |
cpufast7_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
251 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp7_nf.s |
252 |
+ |
$(OBJ_DIR)/cpuopti <cputmp7_nf.s >$@ || mv cputmp7_nf.s $@ |
253 |
+ |
rm -f cputmp7_nf.s |
254 |
+ |
cpufast8_nf.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
255 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS -S $(CXXFLAGS) $< -o cputmp8_nf.s |
256 |
+ |
$(OBJ_DIR)/cpuopti <cputmp8_nf.s >$@ || mv cputmp8_nf.s $@ |
257 |
+ |
rm -f cputmp8_nf.s |
258 |
|
|
259 |
|
#------------------------------------------------------------------------- |
260 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |