1 |
< |
# Linux makefile for SheepShaver |
1 |
> |
# Unix makefile for SheepShaver |
2 |
|
|
3 |
|
## System specific configuration |
4 |
|
@SET_MAKE@ |
73 |
|
GUI_APP_EXE = $(GUI_APP)$(EXEEXT) |
74 |
|
GUI_APP_APP = $(GUI_APP).app |
75 |
|
PROGS += $(GUI_APP_EXE) |
76 |
< |
endif |
77 |
< |
|
76 |
> |
else |
77 |
|
CXXFLAGS += $(GUI_CFLAGS) |
78 |
|
LIBS += $(GUI_LIBS) |
79 |
+ |
endif |
80 |
|
|
81 |
|
## Rules |
82 |
|
.PHONY: modules install uninstall clean distclean depend dep |
119 |
|
$(CXX) -o $@ $(LDFLAGS) $(GUI_OBJS) $(GUI_LIBS) |
120 |
|
|
121 |
|
$(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns |
122 |
+ |
rm -rf $(APP_APP)/Contents |
123 |
|
mkdir -p $(APP_APP)/Contents |
124 |
< |
cp -f ../MacOSX/Info.plist $(APP_APP)/Contents/ |
124 |
> |
./cpr.sh ../MacOSX/Info.plist $(APP_APP)/Contents/ |
125 |
|
echo -n 'APPL????' > $(APP_APP)/Contents/PkgInfo |
126 |
|
mkdir -p $(APP_APP)/Contents/MacOS |
127 |
< |
cp -f $(APP) $(APP_APP)/Contents/MacOS/ |
128 |
< |
strip $(APP_APP)/Contents/MacOS/$(APP) |
127 |
> |
./cpr.sh $(APP) $(APP_APP)/Contents/MacOS/ |
128 |
> |
strip -x $(APP_APP)/Contents/MacOS/$(APP) |
129 |
|
mkdir -p $(APP_APP)/Contents/Resources |
130 |
< |
cp -f ../MacOSX/SheepShaver.icns $(APP_APP)/Contents/Resources/ |
130 |
> |
mkdir -p $(APP_APP)/Contents/Resources/English.lproj |
131 |
> |
./cpr.sh ../MacOSX/Launcher/English.lproj/VMSettingsWindow.nib $(APP_APP)/Contents/Resources/English.lproj |
132 |
> |
./cpr.sh ../MacOSX/SheepShaver.icns $(APP_APP)/Contents/Resources/ |
133 |
|
|
134 |
|
$(GUI_APP)_app: $(GUI_APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns |
135 |
+ |
rm -rf $(GUI_APP_APP)/Contents |
136 |
|
mkdir -p $(GUI_APP_APP)/Contents |
137 |
|
sed -e "s/$(APP)/$(GUI_APP)/" < ../MacOSX/Info.plist > $(GUI_APP_APP)/Contents/Info.plist |
138 |
|
echo -n 'APPL????' > $(GUI_APP_APP)/Contents/PkgInfo |
139 |
|
mkdir -p $(GUI_APP_APP)/Contents/MacOS |
140 |
< |
cp -f $(GUI_APP) $(GUI_APP_APP)/Contents/MacOS/ |
141 |
< |
strip $(GUI_APP_APP)/Contents/MacOS/$(GUI_APP) |
140 |
> |
./cpr.sh $(GUI_APP) $(GUI_APP_APP)/Contents/MacOS/ |
141 |
> |
strip -x $(GUI_APP_APP)/Contents/MacOS/$(GUI_APP) |
142 |
|
mkdir -p $(GUI_APP_APP)/Contents/Resources |
143 |
< |
cp -f ../MacOSX/$(APP).icns $(GUI_APP_APP)/Contents/Resources/$(GUI_APP).icns |
143 |
> |
./cpr.sh ../MacOSX/$(APP).icns $(GUI_APP_APP)/Contents/Resources/$(GUI_APP).icns |
144 |
|
|
145 |
|
modules: |
146 |
|
cd Linux/NetDriver; make |
167 |
|
rmdir $(DESTDIR)$(datadir)/$(APP) |
168 |
|
|
169 |
|
clean: |
170 |
< |
rm -f $(APP_EXE) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp |
170 |
> |
rm -f $(PROGS) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp |
171 |
|
rm -f dyngen basic-dyngen-ops.hpp ppc-dyngen-ops.hpp ppc_asm.out.s |
172 |
< |
rm -rf $(APP_APP) |
172 |
> |
rm -rf $(APP_APP) $(GUI_APP_APP) |
173 |
|
|
174 |
|
distclean: clean |
175 |
|
rm -rf $(OBJ_DIR) |
180 |
|
depend dep: |
181 |
|
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
182 |
|
|
183 |
+ |
$(OBJ_DIR)/SDLMain.o : SDLMain.m |
184 |
+ |
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@ |
185 |
|
$(OBJ_DIR)/%.o : ../slirp/%.c |
186 |
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(SLIRP_CFLAGS) -c $< -o $@ |
187 |
|
$(OBJ_DIR)/%.o : %.c |
226 |
|
ppc-dyngen-ops.hpp: $(OBJ_DIR)/ppc-dyngen-ops.o $(DYNGEN) |
227 |
|
./$(DYNGEN) -o $@ $< |
228 |
|
|
229 |
< |
$(OBJ_DIR)/sheepshaver_glue.o $(OBJ_DIR)/ppc-cpu.o $(OBJ_DIR)/ppc-decode.o $(OBJ_DIR)/ppc-translate.o: basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
229 |
> |
$(OBJ_DIR)/sheepshaver_glue.o $(OBJ_DIR)/ppc-cpu.o $(OBJ_DIR)/ppc-decode.o $(OBJ_DIR)/ppc-translate.o $(OBJ_DIR)/ppc-jit.o: basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
230 |
|
endif |
231 |
|
|
232 |
|
$(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp |
234 |
|
$(CPP) $(CPPFLAGS) -DGENEXEC $< | $(PERL) $(GENEXECPL) > $@ |
235 |
|
|
236 |
|
# PowerPC CPU tester |
237 |
< |
TESTSRCS_ = mathlib/ieeefp.cpp mathlib/mathlib.cpp cpu/ppc/ppc-cpu.cpp cpu/ppc/ppc-decode.cpp cpu/ppc/ppc-execute.cpp cpu/ppc/ppc-translate.cpp test/test-powerpc.cpp $(MONSRCS) vm_alloc.cpp |
237 |
> |
TESTSRCS_ = mathlib/ieeefp.cpp mathlib/mathlib.cpp cpu/ppc/ppc-cpu.cpp cpu/ppc/ppc-decode.cpp cpu/ppc/ppc-execute.cpp cpu/ppc/ppc-translate.cpp test/test-powerpc.cpp $(MONSRCS) vm_alloc.cpp utils/utils-cpuinfo.cpp |
238 |
|
ifeq ($(USE_DYNGEN),yes) |
239 |
< |
TESTSRCS_ += cpu/jit/jit-cache.cpp cpu/jit/basic-dyngen.cpp cpu/ppc/ppc-dyngen.cpp |
239 |
> |
TESTSRCS_ += cpu/jit/jit-cache.cpp cpu/jit/basic-dyngen.cpp cpu/ppc/ppc-dyngen.cpp cpu/ppc/ppc-jit.cpp |
240 |
|
endif |
241 |
|
TESTSRCS = $(TESTSRCS_:%.cpp=$(kpxsrcdir)/%.cpp) |
242 |
|
|