]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/Makefile
xnu-6153.101.6.tar.gz
[apple/xnu.git] / iokit / IOKit / Makefile
CommitLineData
1c79356b
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
6d2010ae
A
6IOKIT_INCVERS = A
7IOKIT_INCFRAME = $(FRAMEDIR)/IOKit.framework
8IOKIT_INCDIR = $(IOKIT_INCFRAME)/Versions/$(IOKIT_INCVERS)/Headers
9IOKIT_PINCDIR = $(IOKIT_INCFRAME)/Versions/$(IOKIT_INCVERS)/PrivateHeaders
10
39236c6e
A
11INCDIR = $(IOKIT_INCDIR)
12LCLDIR = $(IOKIT_PINCDIR)
1c79356b
A
13
14include $(MakeInc_cmd)
15include $(MakeInc_def)
16
17INSTINC_SUBDIRS = \
1c79356b 18 nvram \
1c79356b
A
19 platform \
20 power \
21 pwr_mgt \
22 rtc \
1c79356b
A
23 system_management
24
39037602 25
1c79356b 26EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
316670eb 27
39037602 28# By default, everything in xnu/iokit/IOKit gets installed into
fe8ab488
A
29# Kernel.framework/Headers/IOKit AND Kernel.framework/PrivateHeaders/IOKit.
30# This is so the files with #ifdef ...PRIVATE portions can be processed.
31# xnu/README documents the INSTALL* and EXPORT_MI_DIR lists.
cb323159 32ALL_HEADERS = $(notdir $(wildcard $(SOURCE)*.h))
fe8ab488
A
33
34# Do not install these headers (anywhere).
35NOT_EXPORT_HEADERS = IOInterruptAccountingPrivate.h
91447636 36
fe8ab488 37# Install these only in Kernel.framework's PrivateHeaders (not Headers).
2d21ac55
A
38NOT_KF_MI_HEADERS = $(NOT_EXPORT_HEADERS) \
39 IOKitKeysPrivate.h IOCPU.h \
40 IOHibernatePrivate.h IOPolledInterface.h \
39037602 41 IOCommandQueue.h IOLocksPrivate.h \
316670eb 42 IOSyncer.h AppleKeyStoreInterface.h \
fe8ab488 43 IOStatistics.h IOStatisticsPrivate.h \
5ba3f43e
A
44 IOKernelReporters.h \
45 IOInterruptAccounting.h
1c79356b 46
cb323159 47
fe8ab488 48# These should be additionally installed in IOKit.framework's public Headers
5ba3f43e
A
49INSTALL_MI_LIST = IOBSD.h IOKitKeys.h IOKitServer.h IOReturn.h \
50 IOSharedLock.h IOTypes.h OSMessageNotification.h \
cb323159 51 IODataQueueShared.h IOMessage.h IORPC.h IOUserServer.h
39236c6e 52
fe8ab488 53# These should be additionally installed in IOKit.framework's PrivateHeaders
5ba3f43e
A
54INSTALL_MI_LCL_LIST = IOKitKeysPrivate.h IOHibernatePrivate.h \
55 IOLocksPrivate.h IOStatistics.h \
56 AppleKeyStoreInterface.h \
57 IOReportTypes.h IOKernelReportStructs.h \
58 IOReportMacros.h IOInterruptAccounting.h
1c79356b
A
59
60INSTALL_MI_DIR = .
61
62EXPORT_MI_LIST = $(filter-out $(NOT_EXPORT_HEADERS), $(ALL_HEADERS))
63
64EXPORT_MI_DIR = IOKit
65
91447636
A
66INSTALL_KF_MI_LIST = $(filter-out $(NOT_KF_MI_HEADERS), $(ALL_HEADERS))
67
1c79356b
A
68include $(MakeInc_rule)
69include $(MakeInc_dir)