Skip to content
This repository
Newer
Older
100644 37 lines (26 sloc) 1.023 kb
b5d18175 » kthakore
2010-06-26 New Mac Launcher
1 #!/bin/make -f
2
3 BUILD=build
4 APP_PARTS=\
5 $(BUILD)/SDLPerl.app/Contents/Info.plist \
6 $(BUILD)/SDLPerl.app/Contents/MacOS/SDLPerl \
7 $(BUILD)/SDLPerl.app/Contents/Resources/SDLPerl.rsrc \
8 $(BUILD)/SDLPerl.app/Contents/PkgInfo
9
10 all: $(BUILD)/SDLPerl.app
11
12 clean:
13 rm -rf $(BUILD)
14
15 $(BUILD)/SDLPerl.app: $(APP_PARTS)
16
17 $(BUILD)/SDLPerl.app/Contents:
18 mkdir -p $@
19
20 $(BUILD)/SDLPerl.app/Contents/MacOS:
21 mkdir -p $@
22
23 $(BUILD)/SDLPerl.app/Contents/Resources:
24 mkdir -p $@
25
26 $(BUILD)/SDLPerl.app/Contents/PkgInfo: $(BUILD)/SDLPerl.app/Contents
27 echo -n "BNDL????" > $@
28
29 $(BUILD)/SDLPerl.app/Contents/Info.plist: $(BUILD)/SDLPerl.app/Contents
30 cp Info.plist $@
31
32 $(BUILD)/SDLPerl.app/Contents/MacOS/SDLPerl: $(BUILD)/SDLPerl.app/Contents/MacOS
33 gcc -o $@ $(ARCH_FLAGS) main.c
34
35 $(BUILD)/SDLPerl.app/Contents/Resources/SDLPerl.rsrc: $(BUILD)/SDLPerl.app/Contents/Resources
36 /Developer/Tools/Rez -d __DARWIN__ -useDF -o $(BUILD)/SDLPerl.rsrc $(ARCH_FLAGS) SDLPerl.r
37 /Developer/Tools/ResMerger -dstIs DF $(BUILD)/SDLPerl.rsrc -o $@
Something went wrong with that request. Please try again.