xref: /xnu-11215/iokit/IOKit/Makefile (revision 3ca3bd55)
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
6IOKIT_FRAMEDIR = $(FRAMEDIR)/IOKit.framework/Versions/A
7export INCDIR = $(IOKIT_FRAMEDIR)/Headers
8export LCLDIR = $(IOKIT_FRAMEDIR)/PrivateHeaders
9
10include $(MakeInc_cmd)
11include $(MakeInc_def)
12
13INSTINC_SUBDIRS = \
14	nvram \
15	platform \
16	power \
17	pwr_mgt \
18	rtc \
19	system_management
20
21INSTINC_SUBDIRS_PPC = \
22	ppc
23
24INSTINC_SUBDIRS_I386 = \
25	i386
26
27INSTINC_SUBDIRS_X86_64 = \
28	i386
29
30INSTINC_SUBDIRS_ARM = \
31	arm
32
33EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
34EXPINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS_PPC}
35EXPINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS_I386}
36EXPINC_SUBDIRS_X86_64 = ${INSTINC_SUBDIRS_X86_64}
37EXPINC_SUBDIRS_ARM = ${INSTINC_SUBDIRS_ARM}
38
39NOT_EXPORT_HEADERS =
40
41NOT_KF_MI_HEADERS  = $(NOT_EXPORT_HEADERS)			\
42		     IOKitKeysPrivate.h IOCPU.h			\
43		     IOHibernatePrivate.h IOPolledInterface.h	\
44		     IOCommandQueue.h IOLocksPrivate.h
45
46NOT_LOCAL_HEADERS =
47
48ALL_HEADERS = $(shell (cd $(SOURCE); echo *.h))
49
50INSTALL_MI_LIST	= IOBSD.h IOKitKeys.h IOKitServer.h IOReturn.h\
51		  IOSharedLock.h IOTypes.h OSMessageNotification.h\
52		  IODataQueueShared.h IOMessage.h
53
54INSTALL_MI_LCL_LIST = IOKitKeysPrivate.h IOHibernatePrivate.h IOLocksPrivate.h
55
56INSTALL_MI_DIR = .
57
58EXPORT_MI_LIST	= $(filter-out $(NOT_EXPORT_HEADERS), $(ALL_HEADERS))
59
60EXPORT_MI_DIR = IOKit
61
62INSTALL_KF_MI_LIST = $(filter-out $(NOT_KF_MI_HEADERS), $(ALL_HEADERS))
63
64include $(MakeInc_rule)
65include $(MakeInc_dir)
66