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