]> git.saurik.com Git - apple/xnu.git/blame - iokit/DriverKit/Makefile
xnu-7195.101.1.tar.gz
[apple/xnu.git] / iokit / DriverKit / Makefile
CommitLineData
cb323159
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
6IIG_INCFLAGS = -I$(SRCROOT)/iokit -I$(SRCROOT)/osfmk -I$(SRCROOT)/bsd -I$(OBJROOT)/bsd $(INCFLAGS_EXTERN)
f427ee49 7OTHER_IIG_CFLAGS = $(IIG_INCFLAGS) -isysroot $(SDKROOT) -x c++ -std=gnu++1z -D__IIG=1 -DDRIVERKIT_PRIVATE=1 $(DEPLOYMENT_TARGET_DEFINES)
cb323159
A
8
9INCDIR = $(FRAMEDIR)/$(DKIT_INCDIR)
10DRIVERKITINCDIR = $(DRIVERKITFRAMEDIR)/$(DRIVERKIT_DKIT_INCDIR)
11LCLDIR = $(FRAMEDIR)/$(DKIT_PINCDIR)
12
13include $(MakeInc_cmd)
14include $(MakeInc_def)
15
16ALL_DEFS = $(notdir $(wildcard $(SOURCE)*.iig))
17ALL_HDRS = $(notdir $(wildcard $(SOURCE)*.h))
18
19EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
20
21INSTALL_MI_DIR = .
22
23EXPORT_MI_DIR = DriverKit
24
25GENERATED_HEADERS = $(patsubst %.iig,%.h,$(ALL_DEFS))
26
27GENERATED_IMPL = $(patsubst %.iig,%.iig.cpp,$(ALL_DEFS))
28
29INSTALL_MI_LIST = $(ALL_DEFS)
30INSTALL_DRIVERKIT_MI_LIST = $(ALL_DEFS)
31
ea3f0419 32OTHER_HEADERS = IOTypes.h IOReturn.h IORPC.h IOKitKeys.h
cb323159
A
33
34EXPORT_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
35INSTALL_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
36INSTALL_DRIVERKIT_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
37INSTALL_KF_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
38
39COMP_FILES = ${GENERATED_HEADERS} $(GENERATED_IMPL)
40
41$(GENERATED_HEADERS) : \
42 %.h : %.iig
f427ee49
A
43 @$(LOG_IIG) "$@"
44 $(_v)$(IIG) --def $< --header $@ --impl $(patsubst %.h,%.iig.cpp,$@) --framework-name DriverKit ${OTHER_IIG_FLAGS} -- ${OTHER_IIG_CFLAGS} $(_vstdout)
cb323159
A
45
46$(GENERATED_IMPL) : $(GENERATED_HEADERS)
47
48do_build_all:: $(COMP_FILES)
49
50include $(MakeInc_rule)
51include $(MakeInc_dir)