23 |
|
cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp |
24 |
|
|
25 |
|
# Symlinks to files in other directories |
26 |
< |
GENLINK = README.txt acconfig.h install-sh \ |
26 |
> |
GENLINK = README.txt install-sh \ |
27 |
|
config.guess config.sub user_strings_unix.h |
28 |
|
|
29 |
< |
GEN = $(GENEMUS) $(GENSRCS) $(GENLINK) |
29 |
> |
GEN = $(GENEMUS) $(GENSRCS) |
30 |
|
|
31 |
|
SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \ |
32 |
|
Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \ |
33 |
|
NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \ |
34 |
|
ToDo.html Versions.html \ |
35 |
< |
audio_macosx.cpp extfs_macosx.mm macos_util_macosx.h main_macosx.h \ |
35 |
> |
audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \ |
36 |
|
main_macosx.mm misc_macosx.h misc_macosx.mm prefs_macosx.cpp \ |
37 |
|
sysdeps.h video_macosx.mm video_macosx.h |
38 |
|
APP = $(OBJ_DIR)/BasiliskII.app |
71 |
|
|
72 |
|
distclean: clean |
73 |
|
rm -fr $(OBJ_DIR) |
74 |
< |
rm -f config.cache config.log config.status config.h |
74 |
> |
rm -fr $(GENLINK) |
75 |
> |
rm -f config.cache config.log config.status config.h config.h.in |
76 |
|
rm -f configure |
77 |
|
rm -f Makefile |
78 |
|
|
97 |
|
$< |
98 |
|
|
99 |
|
|
100 |
< |
cpuemu1.cpp: cpuemu.cpp |
101 |
< |
echo '#define PART_1' > $@ |
102 |
< |
echo '#include "$<"' >> $@ |
103 |
< |
cpuemu2.cpp: cpuemu.cpp |
104 |
< |
echo '#define PART_2' > $@ |
105 |
< |
echo '#include "$<"' >> $@ |
106 |
< |
cpuemu3.cpp: cpuemu.cpp |
107 |
< |
echo '#define PART_3' > $@ |
108 |
< |
echo '#include "$<"' >> $@ |
109 |
< |
cpuemu4.cpp: cpuemu.cpp |
110 |
< |
echo '#define PART_4' > $@ |
111 |
< |
echo '#include "$<"' >> $@ |
111 |
< |
cpuemu5.cpp: cpuemu.cpp |
112 |
< |
echo '#define PART_5' > $@ |
113 |
< |
echo '#include "$<"' >> $@ |
114 |
< |
cpuemu6.cpp: cpuemu.cpp |
115 |
< |
echo '#define PART_6' > $@ |
116 |
< |
echo '#include "$<"' >> $@ |
117 |
< |
cpuemu7.cpp: cpuemu.cpp |
118 |
< |
echo '#define PART_7' > $@ |
119 |
< |
echo '#include "$<"' >> $@ |
120 |
< |
cpuemu8.cpp: cpuemu.cpp |
121 |
< |
echo '#define PART_8' > $@ |
122 |
< |
echo '#include "$<"' >> $@ |
123 |
< |
|
124 |
< |
|
125 |
< |
cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
126 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s |
127 |
< |
$(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@ |
128 |
< |
rm -f cputmp.s |
129 |
< |
cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
130 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s |
131 |
< |
$(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@ |
132 |
< |
rm -f cputmp1.s |
133 |
< |
cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
134 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s |
135 |
< |
$(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@ |
136 |
< |
rm -f cputmp2.s |
137 |
< |
cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
138 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s |
139 |
< |
$(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@ |
140 |
< |
rm -f cputmp3.s |
141 |
< |
cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
142 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s |
143 |
< |
$(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@ |
144 |
< |
rm -f cputmp4.s |
145 |
< |
cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
146 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s |
147 |
< |
$(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@ |
148 |
< |
rm -f cputmp5.s |
149 |
< |
cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
150 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s |
151 |
< |
$(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@ |
152 |
< |
rm -f cputmp6.s |
153 |
< |
cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
154 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s |
155 |
< |
$(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@ |
156 |
< |
rm -f cputmp7.s |
157 |
< |
cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti |
158 |
< |
$(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s |
159 |
< |
$(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@ |
160 |
< |
rm -f cputmp8.s |
100 |
> |
$(GENEMUS) : cpuemu.cpp |
101 |
> |
for i in 1 2 3 4 5 6 7 8; \ |
102 |
> |
do \ |
103 |
> |
printf "#define PART_%d\n#include \"%s\"\n" $$i $< >cpuemu$$i.cpp; \ |
104 |
> |
done |
105 |
> |
|
106 |
> |
|
107 |
> |
cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti |
108 |
> |
$(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@ |
109 |
> |
|
110 |
> |
cpuemu.s: cpuemu.cpp |
111 |
> |
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@ |
112 |
|
|
113 |
|
#------------------------------------------------------------------------- |
114 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |