File: Makefile

package info (click to toggle)
libwx-perl 0.9702-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,240 kB
  • ctags: 1,812
  • sloc: cpp: 8,988; perl: 6,366; makefile: 38; ansic: 1
file content (37 lines) | stat: -rwxr-xr-x 999 bytes parent folder | download
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
	 /Developer/Tools/Rez -d __DARWIN__ -useDF -o $(BUILD)/wxPerl.rsrc $(ARCH_FLAGS) wxPerl.r
	/Developer/Tools/ResMerger -dstIs DF $(BUILD)/wxPerl.rsrc -o $@