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