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
6 IIG_INCFLAGS = -I$(SRCROOT)/iokit -I$(SRCROOT)/osfmk -I$(SRCROOT)/bsd -I$(OBJROOT)/bsd $(INCFLAGS_EXTERN)
7 OTHER_IIG_CFLAGS = $(IIG_INCFLAGS) -isysroot $(SDKROOT) -x c++ -std=gnu++1z -D__IIG=1 -DDRIVERKIT_PRIVATE=1 $(DEPLOYMENT_TARGET_DEFINES)
9 INCDIR = $(FRAMEDIR)/$(DKIT_INCDIR)
10 DRIVERKITINCDIR = $(DRIVERKITFRAMEDIR)/$(DRIVERKIT_DKIT_INCDIR)
11 LCLDIR = $(FRAMEDIR)/$(DKIT_PINCDIR)
13 include $(MakeInc_cmd)
14 include $(MakeInc_def)
16 ALL_DEFS = $(notdir $(wildcard $(SOURCE)*.iig))
17 ALL_HDRS = $(notdir $(wildcard $(SOURCE)*.h))
19 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
23 EXPORT_MI_DIR = DriverKit
25 GENERATED_HEADERS = $(patsubst %.iig,%.h,$(ALL_DEFS))
27 GENERATED_IMPL = $(patsubst %.iig,%.iig.cpp,$(ALL_DEFS))
29 INSTALL_MI_LIST = $(ALL_DEFS)
30 INSTALL_DRIVERKIT_MI_LIST = $(ALL_DEFS)
32 OTHER_HEADERS = IOTypes.h IOReturn.h IORPC.h IOKitKeys.h
34 EXPORT_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
35 INSTALL_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
36 INSTALL_DRIVERKIT_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
37 INSTALL_KF_MI_GEN_LIST = $(GENERATED_HEADERS) $(OTHER_HEADERS)
39 COMP_FILES = ${GENERATED_HEADERS} $(GENERATED_IMPL)
41 $(GENERATED_HEADERS) : \
44 $(_v)$(IIG) --def $< --header $@ --impl $(patsubst %.h,%.iig.cpp,$@) --framework-name DriverKit ${OTHER_IIG_FLAGS} -- ${OTHER_IIG_CFLAGS} $(_vstdout)
46 $(GENERATED_IMPL) : $(GENERATED_HEADERS)
48 do_build_all:: $(COMP_FILES)
50 include $(MakeInc_rule)
51 include $(MakeInc_dir)