]> git.saurik.com Git - apple/xnu.git/blame - SETUP/kextsymboltool/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / SETUP / kextsymboltool / Makefile
CommitLineData
6d2010ae
A
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6d2010ae
A
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9OBJS = kextsymboltool.o
10
39236c6e 11CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
6d2010ae
A
12
13WARNFLAGS = -Wall
14
3e170ce0 15LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -lstdc++
6d2010ae 16
3e170ce0 17kextsymboltool: $(OBJS)
f427ee49 18 @$(LOG_HOST_LD) "$@"
3e170ce0 19 $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
f427ee49 20 @$(LOG_HOST_CODESIGN) "$@"
39236c6e 21 $(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@
6d2010ae 22
39236c6e 23%.o: %.c
f427ee49 24 @$(LOG_HOST_CC) "$@"
39236c6e 25 $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
6d2010ae 26
39236c6e 27do_build_setup:: kextsymboltool
6d2010ae
A
28
29include $(MakeInc_rule)
30include $(MakeInc_dir)