]> git.saurik.com Git - apple/xnu.git/blame - SETUP/json_compilation_db/Makefile
xnu-3789.1.32.tar.gz
[apple/xnu.git] / SETUP / json_compilation_db / Makefile
CommitLineData
3e170ce0
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
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9OBJS = json_compilation_db.o
10
11CFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION) -g -O0 -I$(SOURCE) -I.
12
13WARNFLAGS = -Wall
14
15LDFLAGS = -isysroot $(HOST_SDKROOT) -mmacosx-version-min=$(HOST_OS_VERSION)
16
17json_compilation_db: $(OBJS)
39037602 18 @echo "$(ColorH)HOST_LD$(Color0) $(ColorF)$@$(Color0)"
3e170ce0 19 $(_v)$(HOST_CC) $(LDFLAGS) -o $@ $^
39037602 20 @echo "$(ColorH)HOST_CODESIGN$(Color0) $(ColorF)$@$(Color0)"
3e170ce0
A
21 $(_v)env CODESIGN_ALLOCATE=$(HOST_CODESIGN_ALLOCATE) $(HOST_CODESIGN) -s - $@
22
23%.o: %.c
39037602 24 @echo "$(ColorH)HOST_CC$(Color0) $(ColorF)$@$(Color0)"
3e170ce0
A
25 $(_v)$(HOST_CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
26
27do_build_setup:: json_compilation_db
28
29include $(MakeInc_rule)
30include $(MakeInc_dir)