]> git.saurik.com Git - apple/configd.git/blame - Makefile
configd-453.19.tar.gz
[apple/configd.git] / Makefile
CommitLineData
af243a0d
A
1PROJECT=$(shell basename `pwd -P` | sed -e 's/\(.*\)-[0-9][0-9.]*$$/\1/')
2VERSION=$(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
10all :
11 /usr/local/bin/buildit . \
12 -noinstallsrc -noinstallhdrs -noverify -nosum \
13 -arch i386 -arch x86_64 -arch ppc \
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 25darwin :
6bb65964
A
26 /usr/local/bin/buildit . \
27 -noinstallsrc -noinstallhdrs -noverify -nosum \
17d3ee29 28 -arch i386 -arch x86_64 -arch ppc \
6bb65964 29 -target All \
17d3ee29 30 -project ${PROJECT}_darwin-${VERSION} \
6bb65964
A
31 -configuration Debug \
32 -release $(shell cat /usr/share/buildit/.releaseName) \
17d3ee29 33 -othercflags "\"-D_OPEN_SOURCE_\"" \
6bb65964 34
009a3e7e
A
35#----------------------------------------------------------------------
36#
37# Build for Lion, SULionXXX, ...
38#
39#----------------------------------------------------------------------
40
41LION_CFLAGS=
17d3ee29
A
42LION_CFLAGS+=-D__MAC_10_8=1070
43LION_CFLAGS+=-D__AVAILABILITY_INTERNAL__MAC_10_8=__attribute__((visibility(\\\"default\\\")))
44LION_CFLAGS+=-DHAVE_REACHABILITY_SERVER=YES
009a3e7e
A
45
46lion :
47 /usr/local/bin/buildit . \
48 -noinstallsrc -noinstallhdrs -noverify -nosum \
49 -arch i386 -arch x86_64 \
50 -target All \
51 -project ${PROJECT}-${VERSION} \
52 -configuration Debug \
53 -release $(shell cat /usr/share/buildit/.releaseName) \
54 -othercflags "$(LION_CFLAGS)" \
55