1 |
+ |
# $Id$ |
2 |
|
# MacOS X makefile for Basilisk II. Slightly based on the Unix one |
3 |
|
|
4 |
|
## System specific configuration |
24 |
|
cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp |
25 |
|
|
26 |
|
# Symlinks to files in other directories |
27 |
< |
GENLINK = README.txt acconfig.h install-sh \ |
28 |
< |
config.guess config.sub user_strings_unix.h |
27 |
> |
GENLINK = README.txt INSTALL.txt install-sh \ |
28 |
> |
config.guess config.sub \ |
29 |
> |
sys_unix.cpp timer_unix.cpp user_strings_unix.h |
30 |
|
|
31 |
< |
GEN = $(GENEMUS) $(GENSRCS) $(GENLINK) |
31 |
> |
GEN = $(GENEMUS) $(GENSRCS) |
32 |
|
|
33 |
|
SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \ |
34 |
|
Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \ |
35 |
|
NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \ |
36 |
|
ToDo.html Versions.html \ |
37 |
< |
audio_macosx.cpp extfs_macosx.mm macos_util_macosx.h main_macosx.h \ |
37 |
> |
audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \ |
38 |
|
main_macosx.mm misc_macosx.h misc_macosx.mm prefs_macosx.cpp \ |
39 |
|
sysdeps.h video_macosx.mm video_macosx.h |
40 |
|
APP = $(OBJ_DIR)/BasiliskII.app |
58 |
|
|
59 |
|
|
60 |
|
$(APP): $(OBJ_DIR) $(GEN) $(SRCS) |
61 |
< |
pbxbuild -buildstyle Deployment |
62 |
< |
# pbxbuild |
61 |
> |
pbxbuild -buildstyle Deployment || rm -fr $(APP) |
62 |
> |
# pbxbuild || rm -fr $(APP) |
63 |
|
|
64 |
|
BasiliskII.icns : |
65 |
|
touch $@ |
73 |
|
|
74 |
|
distclean: clean |
75 |
|
rm -fr $(OBJ_DIR) |
76 |
< |
rm -f config.cache config.log config.status config.h |
76 |
> |
rm -fr $(GENLINK) |
77 |
> |
rm -f config.cache config.log config.status config.h config.h.in |
78 |
|
rm -f configure |
79 |
|
rm -f Makefile |
80 |
|
|
99 |
|
$< |
100 |
|
|
101 |
|
|
102 |
< |
cpuemu1.cpp: cpuemu.cpp |
103 |
< |
echo '#define PART_1' > $@ |
104 |
< |
echo '#include "$<"' >> $@ |
105 |
< |
cpuemu2.cpp: cpuemu.cpp |
106 |
< |
echo '#define PART_2' > $@ |
107 |
< |
echo '#include "$<"' >> $@ |
108 |
< |
cpuemu3.cpp: cpuemu.cpp |
109 |
< |
echo '#define PART_3' > $@ |
110 |
< |
echo '#include "$<"' >> $@ |
111 |
< |
cpuemu4.cpp: cpuemu.cpp |
112 |
< |
echo '#define PART_4' > $@ |
113 |
< |
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 |
102 |
> |
$(GENEMUS) : cpuemu.cpp |
103 |
> |
for i in 1 2 3 4 5 6 7 8; \ |
104 |
> |
do \ |
105 |
> |
printf "#define PART_%d\n#include \"%s\"\n" $$i $< >cpuemu$$i.cpp; \ |
106 |
> |
done |
107 |
> |
|
108 |
> |
|
109 |
> |
cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti |
110 |
> |
$(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@ |
111 |
> |
|
112 |
> |
cpuemu.s: cpuemu.cpp |
113 |
> |
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@ |
114 |
|
|
115 |
|
#------------------------------------------------------------------------- |
116 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |