]> git.saurik.com Git - apple/xnu.git/blame - SETUP/kextsymboltool/Makefile
xnu-2050.48.11.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
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
10OBJS = kextsymboltool.o
11
12CFLAGS = -isysroot $(HOST_SDKROOT) -g -O0 -I$(SOURCE) -I.
13
14WARNFLAGS = -Wall
15
316670eb
A
16LDFLAGS = -isysroot $(HOST_SDKROOT) -L$(HOST_SPARSE_SDKROOT)/usr/local/lib/system -lstdc++
17ifneq ($(HOST_SPARSE_SDKROOT),/)
18LDFLAGS += -lmacho
19endif
6d2010ae
A
20
21kextsymboltool: $(OBJS)
22 $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
23 @echo HOST_LD $@
24 $(_v)$(HOST_CODESIGN) -s - $@
25 @echo HOST_CODESIGN $@
26
27.c.o:
28 $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
29 @echo HOST_CC $@
30
31do_build_setup: kextsymboltool
32
33include $(MakeInc_rule)
34include $(MakeInc_dir)