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