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