]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | # |
2 | # Commands for the build environment | |
3 | # | |
b0d623f7 A |
4 | ## |
5 | # Verbosity | |
6 | ## | |
7 | ifeq ($(RC_XBS),YES) | |
8 | VERBOSE = YES | |
9 | else | |
10 | VERBOSE = NO | |
11 | endif | |
12 | ifeq ($(VERBOSE),YES) | |
13 | _v = | |
14 | _vstdout = | |
15 | else | |
16 | _v = @ | |
17 | _vstdout = > /dev/null | |
18 | endif | |
1c79356b | 19 | |
b0d623f7 A |
20 | ifeq ($(VERBOSE),YES) |
21 | XCRUN = /usr/bin/xcrun -verbose -log | |
22 | else | |
23 | XCRUN = /usr/bin/xcrun | |
24 | endif | |
25 | ||
26 | SDKROOT ?= / | |
27 | ||
28 | CC := $(XCRUN) -sdk $(SDKROOT) cc | |
29 | CXX := $(XCRUN) -sdk $(SDKROOT) g++ | |
30 | MIG := $(XCRUN) -sdk $(SDKROOT) mig | |
31 | ifeq ($(MIGCC),) | |
32 | export MIGCC := $(shell $(XCRUN) -sdk $(SDKROOT) -find cc) | |
33 | endif | |
34 | ifeq ($(RELPATH),) | |
35 | export RELPATH := $(shell $(XCRUN) -sdk $(SDKROOT) -find relpath) | |
36 | endif | |
37 | SEG_HACK := $(XCRUN) -sdk $(SDKROOT) setsegname | |
38 | KEXT_CREATE_SYMBOL_SET := $(XCRUN) -sdk $(SDKROOT) kextsymboltool | |
39 | ||
40 | MD = /usr/bin/md | |
1c79356b A |
41 | |
42 | RM = /bin/rm -f | |
43 | CP = /bin/cp | |
b0d623f7 | 44 | MV = /bin/mv |
0c530ab8 | 45 | LN = /bin/ln -fs |
1c79356b A |
46 | CAT = /bin/cat |
47 | MKDIR = /bin/mkdir -p | |
2d21ac55 | 48 | FIND = /usr/bin/find |
593a1d5f | 49 | INSTALL = /usr/bin/install |
1c79356b A |
50 | |
51 | TAR = /usr/bin/gnutar | |
b0d623f7 A |
52 | STRIP = $(XCRUN) -sdk $(SDKROOT) strip |
53 | LIPO = $(XCRUN) -sdk $(SDKROOT) lipo | |
54 | LIBTOOL = $(XCRUN) -sdk $(SDKROOT) libtool | |
55 | NM = $(XCRUN) -sdk $(SDKROOT) nm | |
1c79356b A |
56 | |
57 | BASENAME = /usr/bin/basename | |
0b4e3aa0 | 58 | TR = /usr/bin/tr |
1c79356b | 59 | |
b0d623f7 | 60 | UNIFDEF = $(XCRUN) -sdk $(SDKROOT) unifdef |
1c79356b | 61 | DECOMMENT = /usr/local/bin/decomment |
b0d623f7 | 62 | NEWVERS = $(SRCROOT)/config/newvers.pl |
1c79356b | 63 | |
b0d623f7 A |
64 | DSYMUTIL = $(XCRUN) -sdk $(SDKROOT) dsymutil |
65 | CTFCONVERT = $(XCRUN) -sdk $(SDKROOT) ctfconvert | |
66 | CTFMERGE = $(XCRUN) -sdk $(SDKROOT) ctfmerge | |
67 | CTFSCRUB = $(XCRUN) -sdk $(SDKROOT) ctfdump -r | |
2d21ac55 A |
68 | |
69 | # vim: set ft=make: |