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