MacOS X bundle stuff. make SheepShaver_app to build the .app.

This commit is contained in:
gbeauche 2004-07-07 04:13:37 +00:00
parent ba0b428bba
commit cdd4462cd3
2 changed files with 17 additions and 1 deletions

View File

@ -43,6 +43,7 @@ SRCS = main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp
vm_alloc.cpp sigsegv.cpp \
sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS)
APP = SheepShaver
APP_APP = $(APP).app
## Rules
.PHONY: modules install uninstall clean distclean depend dep
@ -75,6 +76,16 @@ $(APP): $(OBJ_DIR) $(OBJS)
$(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
$(BLESS) $(APP)
$(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/SheepShaver.icns
mkdir -p $(APP_APP)/Contents
cp -f ../MacOSX/Info.plist $(APP_APP)/Contents/
echo -n 'APPL????' > $(APP_APP)/Contents/PkgInfo
mkdir -p $(APP_APP)/Contents/MacOS
cp -f $(APP) $(APP_APP)/Contents/MacOS/
strip $(APP_APP)/Contents/MacOS/$(APP)
mkdir -p $(APP_APP)/Contents/Resources
cp -f ../MacOSX/SheepShaver.icns $(APP_APP)/Contents/Resources/
modules:
cd NetDriver; make
@ -98,11 +109,13 @@ uninstall:
clean:
rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
rm -f dyngen basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
rm -rf $(APP_APP)
distclean: clean
rm -rf $(OBJ_DIR)
rm -f Makefile
rm -f config.cache config.log config.status config.h
rm -f ../MacOSX/Info.plist
depend dep:
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null

View File

@ -916,7 +916,10 @@ AC_SUBST(SYSSRCS)
AC_SUBST(CPUSRCS)
AC_SUBST(BLESS)
AC_SUBST(KEYCODES)
AC_OUTPUT(Makefile)
AC_OUTPUT([
Makefile
../MacOSX/Info.plist
])
dnl Print summary.
echo