Create MacOS X bundle for BasiliskIIGUI.app. Also make sure to only link in

necessary GUI_LIBS and not all of the LIBS.
This commit is contained in:
gbeauche 2006-04-17 15:32:37 +00:00
parent a295eea890
commit 02c24ed6c2

View File

@ -56,6 +56,7 @@ APP_APP = $(APP).app
PROGS = $(APP)$(EXEEXT)
ifeq ($(STANDALONE_GUI),yes)
GUI_APP = BasiliskIIGUI
GUI_APP_APP = $(GUI_APP).app
PROGS += $(GUI_APP)$(EXEEXT)
else
CXXFLAGS += $(GUI_CFLAGS)
@ -94,7 +95,7 @@ $(APP)$(EXEEXT): $(OBJ_DIR) $(OBJS)
$(BLESS) $(APP)$(EXEEXT)
$(GUI_APP)$(EXEEXT): $(OBJ_DIR) $(GUI_OBJS)
$(CXX) -o $@ $(LDFLAGS) $(GUI_OBJS) $(LIBS) $(GUI_LIBS)
$(CXX) -o $@ $(LDFLAGS) $(GUI_OBJS) $(GUI_LIBS)
$(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
mkdir -p $(APP_APP)/Contents
@ -106,6 +107,16 @@ $(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
mkdir -p $(APP_APP)/Contents/Resources
cp -f ../MacOSX/$(APP).icns $(APP_APP)/Contents/Resources/
$(GUI_APP)_app: $(GUI_APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
mkdir -p $(GUI_APP_APP)/Contents
sed -e "s/$(APP)/$(GUI_APP)/" < ../MacOSX/Info.plist > $(GUI_APP_APP)/Contents/Info.plist
echo -n 'APPL????' > $(GUI_APP_APP)/Contents/PkgInfo
mkdir -p $(GUI_APP_APP)/Contents/MacOS
cp -f $(GUI_APP) $(GUI_APP_APP)/Contents/MacOS/
strip $(GUI_APP_APP)/Contents/MacOS/$(GUI_APP)
mkdir -p $(GUI_APP_APP)/Contents/Resources
cp -f ../MacOSX/$(APP).icns $(GUI_APP_APP)/Contents/Resources/$(GUI_APP).icns
modules:
cd Linux/NetDriver; make