]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/Makefile
xnu-6153.11.26.tar.gz
[apple/xnu.git] / iokit / IOKit / Makefile
index 9368f3eff6bb19df5a86c7dc66887415f2b7bff4..e898d7e4b8d2a0a28ec20d85d4c4d04e05652734 100644 (file)
@@ -3,43 +3,59 @@ export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 
 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
 
-IOKIT_FRAMEDIR = $(FRAMEDIR)/IOKit.framework/Versions/A
-export INCDIR = $(IOKIT_FRAMEDIR)/Headers
-export LCLDIR = $(IOKIT_FRAMEDIR)/PrivateHeaders
+IOKIT_INCVERS = A
+IOKIT_INCFRAME = $(FRAMEDIR)/IOKit.framework
+IOKIT_INCDIR = $(IOKIT_INCFRAME)/Versions/$(IOKIT_INCVERS)/Headers
+IOKIT_PINCDIR = $(IOKIT_INCFRAME)/Versions/$(IOKIT_INCVERS)/PrivateHeaders
+
+INCDIR = $(IOKIT_INCDIR)
+LCLDIR = $(IOKIT_PINCDIR)
 
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
 INSTINC_SUBDIRS = \
 
 include $(MakeInc_cmd)
 include $(MakeInc_def)
 
 INSTINC_SUBDIRS = \
-        adb \
        nvram \
        nvram \
-        pci \
        platform \
        power \
        pwr_mgt \
        rtc \
        system_management
 
        platform \
        power \
        pwr_mgt \
        rtc \
        system_management
 
-INSTINC_SUBDIRS_PPC = \
-       ppc
-
-INSTINC_SUBDIRS_I386 = \
-       i386
 
 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
 
 EXPINC_SUBDIRS = ${INSTINC_SUBDIRS}
-EXPINC_SUBDIRS_PPC = ${INSTINC_SUBDIRS_PPC}
-EXPINC_SUBDIRS_I386 = ${INSTINC_SUBDIRS_I386}
 
 
-NOT_EXPORT_HEADERS = 
-NOT_LOCAL_HEADERS = 
+# By default, everything in xnu/iokit/IOKit gets installed into
+# Kernel.framework/Headers/IOKit AND Kernel.framework/PrivateHeaders/IOKit.
+# This is so the files with #ifdef ...PRIVATE portions can be processed.
+# xnu/README documents the INSTALL* and EXPORT_MI_DIR lists.
+ALL_HEADERS = $(notdir $(wildcard $(SOURCE)*.h))
+
+# Do not install these headers (anywhere).
+NOT_EXPORT_HEADERS = IOInterruptAccountingPrivate.h
 
 
-ALL_HEADERS = $(shell (cd $(SOURCE); echo *.h))
+# Install these only in Kernel.framework's PrivateHeaders (not Headers).
+NOT_KF_MI_HEADERS  = $(NOT_EXPORT_HEADERS)                     \
+                    IOKitKeysPrivate.h IOCPU.h                 \
+                    IOHibernatePrivate.h IOPolledInterface.h   \
+                    IOCommandQueue.h IOLocksPrivate.h          \
+                    IOSyncer.h AppleKeyStoreInterface.h        \
+                    IOStatistics.h IOStatisticsPrivate.h       \
+                    IOKernelReporters.h                        \
+                    IOInterruptAccounting.h
 
 
-INSTALL_MI_LIST        = IOBSD.h IOKitKeys.h IOKitServer.h IOReturn.h\
-                 IOSharedLock.h IOTypes.h OSMessageNotification.h\
-                 IODataQueueShared.h IOMessage.h
-                  
-INSTALL_MI_LCL_LIST = ""
+
+# These should be additionally installed in IOKit.framework's public Headers
+INSTALL_MI_LIST        = IOBSD.h IOKitKeys.h IOKitServer.h IOReturn.h      \
+                 IOSharedLock.h IOTypes.h OSMessageNotification.h  \
+                 IODataQueueShared.h IOMessage.h IORPC.h IOUserServer.h
+
+# These should be additionally installed in IOKit.framework's PrivateHeaders
+INSTALL_MI_LCL_LIST = IOKitKeysPrivate.h IOHibernatePrivate.h   \
+                     IOLocksPrivate.h IOStatistics.h           \
+                     AppleKeyStoreInterface.h                  \
+                     IOReportTypes.h IOKernelReportStructs.h   \
+                     IOReportMacros.h IOInterruptAccounting.h
 
 INSTALL_MI_DIR = .
 
 
 INSTALL_MI_DIR = .
 
@@ -47,5 +63,7 @@ EXPORT_MI_LIST        = $(filter-out $(NOT_EXPORT_HEADERS), $(ALL_HEADERS))
 
 EXPORT_MI_DIR = IOKit
 
 
 EXPORT_MI_DIR = IOKit
 
+INSTALL_KF_MI_LIST = $(filter-out $(NOT_KF_MI_HEADERS), $(ALL_HEADERS))
+
 include $(MakeInc_rule)
 include $(MakeInc_dir)
 include $(MakeInc_rule)
 include $(MakeInc_dir)