1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/bin/make -f
BUILD=build
APP_PARTS=\
$(BUILD)/wxPerl.app/Contents/Info.plist \
$(BUILD)/wxPerl.app/Contents/MacOS/wxPerl \
$(BUILD)/wxPerl.app/Contents/Resources/wxPerl.rsrc \
$(BUILD)/wxPerl.app/Contents/PkgInfo
all: $(BUILD)/wxPerl.app
clean:
rm -rf $(BUILD)
$(BUILD)/wxPerl.app: $(APP_PARTS)
$(BUILD)/wxPerl.app/Contents:
mkdir -p $@
$(BUILD)/wxPerl.app/Contents/MacOS:
mkdir -p $@
$(BUILD)/wxPerl.app/Contents/Resources:
mkdir -p $@
$(BUILD)/wxPerl.app/Contents/PkgInfo: $(BUILD)/wxPerl.app/Contents
echo -n "BNDL????" > $@
$(BUILD)/wxPerl.app/Contents/Info.plist: $(BUILD)/wxPerl.app/Contents
cp Info.plist $@
$(BUILD)/wxPerl.app/Contents/MacOS/wxPerl: $(BUILD)/wxPerl.app/Contents/MacOS
gcc -o $@ $(ARCH_FLAGS) main.c
$(BUILD)/wxPerl.app/Contents/Resources/wxPerl.rsrc: $(BUILD)/wxPerl.app/Contents/Resources
$(RESTOOLDIR)/Rez -d __DARWIN__ -useDF -o $(BUILD)/wxPerl.rsrc $(ARCH_FLAGS) wxPerl.r
$(RESTOOLDIR)/ResMerger -dstIs DF $(BUILD)/wxPerl.rsrc -o $@
|