]>
Commit | Line | Data |
---|---|---|
af243a0d A |
1 | PROJECT=$(shell basename `pwd -P` | sed -e 's/\(.*\)-[0-9][0-9.]*$$/\1/') |
2 | VERSION=$(shell basename `pwd -P` | sed -e 's/.*-\([0-9][0-9.]*$$\)/\1/') | |
3 | ||
6bb65964 A |
4 | #---------------------------------------------------------------------- |
5 | # | |
6 | # Build for [current] release | |
7 | # | |
8 | #---------------------------------------------------------------------- | |
9 | ||
10 | all : | |
11 | /usr/local/bin/buildit . \ | |
78403150 A |
12 | -noinstallsrc -noinstallhdrs -noverify \ |
13 | -arch x86_64 \ | |
6bb65964 | 14 | -target All \ |
17d3ee29 | 15 | -project ${PROJECT}-${VERSION} \ |
6bb65964 A |
16 | -configuration Debug \ |
17 | -release $(shell cat /usr/share/buildit/.releaseName) \ | |
18 | ||
19 | #---------------------------------------------------------------------- | |
20 | # | |
17d3ee29 | 21 | # Darwin build |
6bb65964 A |
22 | # |
23 | #---------------------------------------------------------------------- | |
24 | ||
17d3ee29 | 25 | darwin : |
6bb65964 | 26 | /usr/local/bin/buildit . \ |
78403150 A |
27 | -novalidateParameters \ |
28 | -noinstallsrc -noinstallhdrs -noverify \ | |
29 | -arch x86_64 \ | |
6bb65964 | 30 | -target All \ |
17d3ee29 | 31 | -project ${PROJECT}_darwin-${VERSION} \ |
6bb65964 A |
32 | -configuration Debug \ |
33 | -release $(shell cat /usr/share/buildit/.releaseName) \ | |
78403150 | 34 | -othercflags "\"-D__OPEN_SOURCE__\"" \ |
6bb65964 | 35 | |
009a3e7e A |
36 | #---------------------------------------------------------------------- |
37 | # | |
38 | # Build for Lion, SULionXXX, ... | |
39 | # | |
40 | #---------------------------------------------------------------------- | |
41 | ||
42 | LION_CFLAGS= | |
17d3ee29 A |
43 | LION_CFLAGS+=-D__MAC_10_8=1070 |
44 | LION_CFLAGS+=-D__AVAILABILITY_INTERNAL__MAC_10_8=__attribute__((visibility(\\\"default\\\"))) | |
45 | LION_CFLAGS+=-DHAVE_REACHABILITY_SERVER=YES | |
009a3e7e | 46 | |
5e9ce69e A |
47 | LION_SDKROOT=$(shell xcodebuild -version -sdk macosx10.7internal Path) |
48 | ||
009a3e7e A |
49 | lion : |
50 | /usr/local/bin/buildit . \ | |
78403150 A |
51 | -noinstallsrc -noinstallhdrs -noverify \ |
52 | -arch x86_64 \ | |
009a3e7e A |
53 | -target All \ |
54 | -project ${PROJECT}-${VERSION} \ | |
55 | -configuration Debug \ | |
56 | -release $(shell cat /usr/share/buildit/.releaseName) \ | |
57 | -othercflags "$(LION_CFLAGS)" \ | |
5e9ce69e A |
58 | -- \ |
59 | SDKROOT=$(LION_SDKROOT) \ | |
009a3e7e | 60 |