]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd |
2 | export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def | |
3 | export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule | |
4 | export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir | |
5 | ||
6 | ||
7 | include $(MakeInc_cmd) | |
8 | include $(MakeInc_def) | |
9 | ||
593a1d5f A |
10 | ALLPRODUCTS = AppleTV iPhone MacOSX |
11 | PRODUCT = $(shell tconf --product) | |
12 | EXTRAUNIFDEF = $(foreach x,$(ALLPRODUCTS),$(if $(findstring $(PRODUCT),$(x)),-DPRODUCT_$(x),-UPRODUCT_$(x))) | |
13 | SINCFRAME_UNIFDEF += $(EXTRAUNIFDEF) | |
14 | SPINCFRAME_UNIFDEF += $(EXTRAUNIFDEF) | |
15 | KINCFRAME_UNIFDEF += $(EXTRAUNIFDEF) | |
16 | KPINCFRAME_UNIFDEF += $(EXTRAUNIFDEF) | |
17 | ||
1c79356b A |
18 | INSTINC_SUBDIRS = \ |
19 | ||
20 | INSTINC_SUBDIRS_PPC = \ | |
21 | ||
22 | INSTINC_SUBDIRS_I386 = \ | |
23 | ||
24 | EXPINC_SUBDIRS = \ | |
25 | ||
26 | EXPINC_SUBDIRS_PPC = \ | |
27 | ||
28 | EXPINC_SUBDIRS_I386 = \ | |
29 | ||
2d21ac55 A |
30 | # Installs header file for user level - |
31 | # $(DSTROOT)/System/Library/Frameworks/System.framework/Headers | |
32 | # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders | |
33 | # $(DSTROOT)/usr/include/ | |
1c79356b | 34 | DATAFILES = \ |
55e303ae | 35 | appleapiopts.h acct.h aio.h attr.h \ |
91447636 | 36 | buf.h cdefs.h conf.h \ |
2d21ac55 A |
37 | dir.h dirent.h disk.h dkstat.h dtrace.h dtrace_glue.h dtrace_impl.h \ |
38 | errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h gmon.h \ | |
91447636 A |
39 | ioccom.h ioctl.h \ |
40 | ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h loadable_fs.h lock.h lockf.h \ | |
2d21ac55 | 41 | kauth.h kdebug.h kern_control.h kern_memorystatus.h lctx.h malloc.h \ |
91447636 | 42 | mbuf.h mman.h mount.h msg.h msgbuf.h mtio.h netport.h param.h paths.h pipe.h poll.h \ |
2d21ac55 A |
43 | proc.h proc_info.h ptrace.h queue.h quota.h random.h reboot.h resource.h resourcevar.h \ |
44 | sbuf.h posix_sem.h posix_shm.h sdt.h \ | |
9bccf70c | 45 | select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h \ |
91447636 | 46 | syscall.h sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \ |
1c79356b | 47 | timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \ |
9bccf70c | 48 | ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \ |
2d21ac55 | 49 | user.h utfconv.h utsname.h vadvise.h vcmd.h \ |
91447636 | 50 | vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \ |
2d21ac55 A |
51 | _select.h _structs.h _types.h _endian.h domain.h protosw.h \ |
52 | spawn.h | |
91447636 | 53 | |
2d21ac55 A |
54 | # Installs header file for Apple internal use in user level - |
55 | # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders | |
91447636 | 56 | PRIVATE_DATAFILES = \ |
2d21ac55 | 57 | codesign.h \ |
91447636 | 58 | disklabel.h \ |
2d21ac55 | 59 | fslog.h \ |
91447636 | 60 | ipcs.h \ |
91447636 | 61 | shm_internal.h \ |
2d21ac55 | 62 | spawn_internal.h \ |
91447636 | 63 | ux_exception.h \ |
0c530ab8 | 64 | proc_info.h \ |
91447636 A |
65 | vnioctl.h |
66 | ||
2d21ac55 A |
67 | # Installs header file for kernel extensions - |
68 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers | |
69 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 A |
70 | KERNELFILES = \ |
71 | appleapiopts.h attr.h \ | |
72 | buf.h cdefs.h conf.h \ | |
2d21ac55 | 73 | dir.h dirent.h disk.h disklabel.h dkstat.h \ |
91447636 | 74 | errno.h ev.h event.h fcntl.h file.h filedesc.h filio.h \ |
2d21ac55 A |
75 | ioccom.h ioctl.h ipc.h \ |
76 | ioctl_compat.h kernel.h kernel_types.h kern_event.h lctx.h lock.h lockf.h \ | |
77 | kauth.h kdebug.h md5.h kern_control.h kern_memorystatus.h imgact.h malloc.h namei.h \ | |
91447636 A |
78 | mman.h mbuf.h mount.h mtio.h netport.h param.h paths.h \ |
79 | proc.h queue.h quota.h random.h resource.h resourcevar.h \ | |
2d21ac55 | 80 | sbuf.h posix_sem.h posix_shm.h sem.h shm.h \ |
91447636 A |
81 | select.h signal.h socket.h socketvar.h sockio.h stat.h \ |
82 | sysctl.h syslimits.h syslog.h systm.h sys_domain.h time.h \ | |
83 | types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \ | |
2d21ac55 A |
84 | utfconv.h vm.h vmparam.h vnode.h vnode_if.h xattr.h \ |
85 | _select.h _structs.h _types.h _endian.h protosw.h domain.h \ | |
91447636 | 86 | kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \ |
2d21ac55 A |
87 | ttycom.h termios.h msg.h \ |
88 | pipe.h sysproto.h semaphore.h wait.h \ | |
89 | spawn.h | |
90 | # The last line was added to export needed headers for the MAC calls | |
91 | # whose source is outside of the xnu/bsd tree. | |
91447636 A |
92 | |
93 | ||
2d21ac55 A |
94 | # Installs header file for Apple internal use for kernel extensions - |
95 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 A |
96 | PRIVATE_KERNELFILES = \ |
97 | disktab.h \ | |
2d21ac55 | 98 | fbt.h \ |
91447636 | 99 | file_internal.h \ |
2d21ac55 | 100 | fslog.h \ |
91447636 A |
101 | mach_swapon.h \ |
102 | msgbuf.h \ | |
103 | eventvar.h \ | |
104 | mount_internal.h \ | |
105 | proc_internal.h \ | |
91447636 | 106 | vnode_internal.h \ |
2d21ac55 A |
107 | sem_internal.h \ |
108 | shm_internal.h \ | |
91447636 A |
109 | signalvar.h \ |
110 | tty.h ttychars.h \ | |
111 | ttydefaults.h ttydev.h \ | |
112 | user.h \ | |
113 | ubc_internal.h \ | |
114 | uio_internal.h \ | |
2d21ac55 A |
115 | vfs_context.h \ |
116 | vmmeter.h \ | |
117 | spawn_internal.h | |
91447636 | 118 | |
1c79356b | 119 | |
2d21ac55 | 120 | # /System/Library/Frameworks/System.framework/Headers and /usr/include |
1c79356b A |
121 | INSTALL_MI_LIST = ${DATAFILES} |
122 | ||
123 | INSTALL_MI_DIR = sys | |
124 | ||
2d21ac55 | 125 | EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} syscall.h linker_set.h bsdtask_info.h |
1c79356b A |
126 | |
127 | EXPORT_MI_DIR = sys | |
128 | ||
91447636 A |
129 | # /System/Library/Frameworks/System.framework/PrivateHeaders |
130 | INSTALL_MI_LCL_LIST = ${DATAFILES} ${PRIVATE_DATAFILES} | |
131 | ||
132 | # /System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 A |
133 | INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} |
134 | ||
135 | # /System/Library/Frameworks/Kernel.framework/Headers | |
91447636 | 136 | INSTALL_KF_MI_LIST = ${KERNELFILES} |
1c79356b A |
137 | |
138 | include $(MakeInc_rule) | |
139 | include $(MakeInc_dir) | |
140 | ||
141 |