X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..7e4a7d3939db04e70062ae6c7bf24b8c8b2f5a7c:/makedefs/MakeInc.cmd diff --git a/makedefs/MakeInc.cmd b/makedefs/MakeInc.cmd index 6af46de7f..06457b6f2 100644 --- a/makedefs/MakeInc.cmd +++ b/makedefs/MakeInc.cmd @@ -1,32 +1,69 @@ # # Commands for the build environment # -MIG = $(NEXT_ROOT)/usr/bin/mig +## +# Verbosity +## +ifeq ($(RC_XBS),YES) +VERBOSE = YES +else +VERBOSE = NO +endif +ifeq ($(VERBOSE),YES) +_v = +_vstdout = +else +_v = @ +_vstdout = > /dev/null +endif -MD= /usr/bin/md +ifeq ($(VERBOSE),YES) + XCRUN = /usr/bin/xcrun -verbose -log +else + XCRUN = /usr/bin/xcrun +endif + +SDKROOT ?= / + +CC := $(XCRUN) -sdk $(SDKROOT) cc +CXX := $(XCRUN) -sdk $(SDKROOT) g++ +MIG := $(XCRUN) -sdk $(SDKROOT) mig +ifeq ($(MIGCC),) + export MIGCC := $(shell $(XCRUN) -sdk $(SDKROOT) -find cc) +endif +ifeq ($(RELPATH),) + export RELPATH := $(shell $(XCRUN) -sdk $(SDKROOT) -find relpath) +endif +SEG_HACK := $(XCRUN) -sdk $(SDKROOT) setsegname +KEXT_CREATE_SYMBOL_SET := $(XCRUN) -sdk $(SDKROOT) kextsymboltool + +MD = /usr/bin/md RM = /bin/rm -f CP = /bin/cp +MV = /bin/mv LN = /bin/ln -fs CAT = /bin/cat MKDIR = /bin/mkdir -p FIND = /usr/bin/find +INSTALL = /usr/bin/install TAR = /usr/bin/gnutar -STRIP = /usr/bin/strip -LIPO = /usr/bin/lipo +STRIP = $(XCRUN) -sdk $(SDKROOT) strip +LIPO = $(XCRUN) -sdk $(SDKROOT) lipo +LIBTOOL = $(XCRUN) -sdk $(SDKROOT) libtool +NM = $(XCRUN) -sdk $(SDKROOT) nm BASENAME = /usr/bin/basename -export RELPATH = $(NEXT_ROOT)/usr/local/bin/relpath TR = /usr/bin/tr -SEG_HACK = $(NEXT_ROOT)/usr/local/bin/seg_hack -UNIFDEF = /usr/bin/unifdef +UNIFDEF = $(XCRUN) -sdk $(SDKROOT) unifdef DECOMMENT = /usr/local/bin/decomment +NEWVERS = $(SRCROOT)/config/newvers.pl -DSYMUTIL = /usr/bin/dsymutil -CTFCONVERT = /usr/local/bin/ctfconvert -CTFMERGE = /usr/local/bin/ctfmerge -CTFSCRUB = /usr/local/bin/ctfdump -r +DSYMUTIL = $(XCRUN) -sdk $(SDKROOT) dsymutil +CTFCONVERT = $(XCRUN) -sdk $(SDKROOT) ctfconvert +CTFMERGE = $(XCRUN) -sdk $(SDKROOT) ctfmerge +CTFSCRUB = $(XCRUN) -sdk $(SDKROOT) ctfdump -r # vim: set ft=make: