1*1b191cb5SApple OSS Distributionsexport MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd 2*1b191cb5SApple OSS Distributionsexport MakeInc_def=${SRCROOT}/makedefs/MakeInc.def 3*1b191cb5SApple OSS Distributionsexport MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule 4*1b191cb5SApple OSS Distributionsexport MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir 5*1b191cb5SApple OSS Distributions 6*1b191cb5SApple OSS Distributionsinclude $(MakeInc_cmd) 7*1b191cb5SApple OSS Distributionsinclude $(MakeInc_def) 8*1b191cb5SApple OSS Distributions 9*1b191cb5SApple OSS DistributionsINSTINC_SUBDIRS = \ 10*1b191cb5SApple OSS Distributions nvram \ 11*1b191cb5SApple OSS Distributions platform \ 12*1b191cb5SApple OSS Distributions power \ 13*1b191cb5SApple OSS Distributions pwr_mgt \ 14*1b191cb5SApple OSS Distributions rtc \ 15*1b191cb5SApple OSS Distributions system_management \ 16*1b191cb5SApple OSS Distributions skywalk 17*1b191cb5SApple OSS Distributions 18*1b191cb5SApple OSS Distributions 19*1b191cb5SApple OSS DistributionsEXPINC_SUBDIRS = ${INSTINC_SUBDIRS} 20*1b191cb5SApple OSS Distributions 21*1b191cb5SApple OSS Distributions# By default, everything in xnu/iokit/IOKit gets installed into 22*1b191cb5SApple OSS Distributions# Kernel.framework/Headers/IOKit AND Kernel.framework/PrivateHeaders/IOKit. 23*1b191cb5SApple OSS Distributions# This is so the files with #ifdef ...PRIVATE portions can be processed. 24*1b191cb5SApple OSS Distributions# xnu/README documents the INSTALL* and EXPORT_MI_DIR lists. 25*1b191cb5SApple OSS DistributionsALL_HEADERS = $(notdir $(wildcard $(SOURCE)*.h)) 26*1b191cb5SApple OSS Distributions 27*1b191cb5SApple OSS Distributions# Do not install these headers (anywhere). 28*1b191cb5SApple OSS DistributionsNOT_EXPORT_HEADERS = IOInterruptAccountingPrivate.h 29*1b191cb5SApple OSS Distributions 30*1b191cb5SApple OSS Distributions# Install these only in Kernel.framework's PrivateHeaders (not Headers). 31*1b191cb5SApple OSS DistributionsNOT_KF_MI_HEADERS = $(NOT_EXPORT_HEADERS) \ 32*1b191cb5SApple OSS Distributions IOKitKeysPrivate.h IOCPU.h \ 33*1b191cb5SApple OSS Distributions IOHibernatePrivate.h IOPolledInterface.h \ 34*1b191cb5SApple OSS Distributions IOCommandQueue.h IOLocksPrivate.h \ 35*1b191cb5SApple OSS Distributions IOSyncer.h AppleKeyStoreInterface.h \ 36*1b191cb5SApple OSS Distributions IOStatistics.h IOStatisticsPrivate.h \ 37*1b191cb5SApple OSS Distributions IOKernelReporters.h \ 38*1b191cb5SApple OSS Distributions IOInterruptAccounting.h \ 39*1b191cb5SApple OSS Distributions IOPlatformIO.h \ 40*1b191cb5SApple OSS Distributions IOPMGR.h IOPlatformActions.h 41*1b191cb5SApple OSS Distributions 42*1b191cb5SApple OSS Distributions 43*1b191cb5SApple OSS Distributions# These should be additionally installed in IOKit.framework's public Headers 44*1b191cb5SApple OSS DistributionsINSTALL_IF_MI_LIST = IOBSD.h IOKitKeys.h IOKitServer.h IOReturn.h \ 45*1b191cb5SApple OSS Distributions IOSharedLock.h IOTypes.h IOMapTypes.h OSMessageNotification.h \ 46*1b191cb5SApple OSS Distributions IODataQueueShared.h IOMessage.h IORPC.h IOUserServer.h 47*1b191cb5SApple OSS Distributions 48*1b191cb5SApple OSS Distributions# These should be additionally installed in IOKit.framework's PrivateHeaders 49*1b191cb5SApple OSS DistributionsINSTALL_IF_MI_LCL_LIST = $(INSTALL_IF_MI_LIST) 50*1b191cb5SApple OSS DistributionsINSTALL_IF_MI_LCL_LIST += \ 51*1b191cb5SApple OSS Distributions IOKitKeysPrivate.h IOHibernatePrivate.h \ 52*1b191cb5SApple OSS Distributions IOLocksPrivate.h IOStatistics.h \ 53*1b191cb5SApple OSS Distributions AppleKeyStoreInterface.h \ 54*1b191cb5SApple OSS Distributions IOReportTypes.h IOKernelReportStructs.h \ 55*1b191cb5SApple OSS Distributions IOReportMacros.h IOInterruptAccounting.h 56*1b191cb5SApple OSS Distributions 57*1b191cb5SApple OSS DistributionsINSTALL_MI_DIR = . 58*1b191cb5SApple OSS Distributions 59*1b191cb5SApple OSS DistributionsEXPORT_MI_LIST = $(filter-out $(NOT_EXPORT_HEADERS), $(ALL_HEADERS)) 60*1b191cb5SApple OSS Distributions 61*1b191cb5SApple OSS DistributionsEXPORT_MI_DIR = IOKit 62*1b191cb5SApple OSS Distributions 63*1b191cb5SApple OSS DistributionsINSTALL_KF_MI_LIST = $(filter-out $(NOT_KF_MI_HEADERS), $(ALL_HEADERS)) 64*1b191cb5SApple OSS Distributions 65*1b191cb5SApple OSS Distributionsinclude $(MakeInc_rule) 66*1b191cb5SApple OSS Distributionsinclude $(MakeInc_dir) 67