]>
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 | ||
1c79356b A |
6 | include $(MakeInc_cmd) |
7 | include $(MakeInc_def) | |
8 | ||
39236c6e A |
9 | INSTINC_SUBDIRS = \ |
10 | _types | |
593a1d5f | 11 | |
39236c6e A |
12 | EXPINC_SUBDIRS = \ |
13 | _types | |
1c79356b | 14 | |
39037602 | 15 | # Installs header file for user level - |
2d21ac55 A |
16 | # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders |
17 | # $(DSTROOT)/usr/include/ | |
1c79356b | 18 | DATAFILES = \ |
39037602 A |
19 | appleapiopts.h acct.h aio.h attr.h \ |
20 | buf.h cdefs.h clonefile.h conf.h \ | |
2d21ac55 | 21 | dir.h dirent.h disk.h dkstat.h dtrace.h dtrace_glue.h dtrace_impl.h \ |
5ba3f43e | 22 | errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h fsgetpath.h gmon.h \ |
91447636 | 23 | ioccom.h ioctl.h \ |
3e170ce0 | 24 | ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h lctx.h loadable_fs.h lock.h lockf.h \ |
39037602 | 25 | kauth.h kdebug.h kdebug_signpost.h kern_control.h lockstat.h malloc.h \ |
b0d623f7 | 26 | mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \ |
39037602 A |
27 | proc.h proc_info.h ptrace.h queue.h quota.h reboot.h resource.h resourcevar.h \ |
28 | sbuf.h posix_sem.h posix_shm.h random.h sdt.h\ | |
5ba3f43e | 29 | select.h sem.h semaphore.h shm.h signal.h signalvar.h snapshot.h socket.h socketvar.h sockio.h stat.h stdio.h \ |
b0d623f7 | 30 | sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \ |
1c79356b | 31 | timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \ |
9bccf70c | 32 | ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \ |
2d21ac55 | 33 | user.h utfconv.h utsname.h vadvise.h vcmd.h \ |
91447636 | 34 | vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \ |
2d21ac55 | 35 | _select.h _structs.h _types.h _endian.h domain.h protosw.h \ |
5ba3f43e | 36 | spawn.h timex.h commpage.h |
91447636 | 37 | |
39037602 | 38 | # Installs header file for Apple internal use in user level - |
2d21ac55 | 39 | # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders |
91447636 | 40 | PRIVATE_DATAFILES = \ |
3e170ce0 A |
41 | attr.h \ |
42 | cdefs.h \ | |
39037602 | 43 | clonefile.h \ |
fe8ab488 | 44 | coalition.h \ |
2d21ac55 | 45 | codesign.h \ |
6d2010ae | 46 | content_protection.h \ |
fe8ab488 | 47 | csr.h \ |
316670eb | 48 | decmpfs.h \ |
3e170ce0 | 49 | disk.h \ |
91447636 | 50 | disklabel.h \ |
3e170ce0 A |
51 | domain.h \ |
52 | event.h \ | |
53 | fcntl.h \ | |
6d2010ae | 54 | fileport.h \ |
b0d623f7 | 55 | fsctl.h \ |
3e170ce0 | 56 | fsevents.h \ |
b0d623f7 | 57 | fsgetpath.h \ |
2d21ac55 | 58 | fslog.h \ |
39236c6e | 59 | guarded.h \ |
6d2010ae | 60 | imgsrc.h \ |
91447636 | 61 | ipcs.h \ |
316670eb | 62 | kas_info.h \ |
3e170ce0 A |
63 | kdebug.h \ |
64 | kern_control.h \ | |
65 | kern_event.h \ | |
fe8ab488 | 66 | kern_memorystatus.h \ |
39236c6e | 67 | kern_overrides.h \ |
3e170ce0 A |
68 | mbuf.h \ |
69 | mman.h \ | |
5ba3f43e | 70 | monotonic.h \ |
490019cf | 71 | persona.h \ |
3e170ce0 A |
72 | priv.h \ |
73 | proc.h \ | |
74 | proc_info.h \ | |
75 | proc_uuid_policy.h \ | |
76 | process_policy.h \ | |
39037602 | 77 | reason.h \ |
3e170ce0 | 78 | resource.h \ |
fe8ab488 | 79 | sfi.h \ |
91447636 | 80 | shm_internal.h \ |
39037602 | 81 | snapshot.h \ |
3e170ce0 A |
82 | socket.h \ |
83 | socketvar.h \ | |
84 | sockio.h \ | |
85 | spawn.h \ | |
2d21ac55 | 86 | spawn_internal.h \ |
3e170ce0 A |
87 | stackshot.h \ |
88 | sys_domain.h \ | |
b0d623f7 | 89 | tree.h \ |
39037602 | 90 | ulock.h \ |
3e170ce0 | 91 | unpcb.h \ |
91447636 | 92 | ux_exception.h \ |
3e170ce0 | 93 | work_interval.h \ |
6d2010ae | 94 | process_policy.h \ |
39236c6e | 95 | proc_uuid_policy.h \ |
3e170ce0 A |
96 | priv.h \ |
97 | pgo.h \ | |
5ba3f43e A |
98 | memory_maintenance.h \ |
99 | commpage.h | |
91447636 | 100 | |
39037602 | 101 | # Installs header file for kernel extensions - |
2d21ac55 A |
102 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers |
103 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 | 104 | KERNELFILES = \ |
39037602 | 105 | appleapiopts.h attr.h \ |
91447636 | 106 | buf.h cdefs.h conf.h \ |
2d21ac55 | 107 | dir.h dirent.h disk.h disklabel.h dkstat.h \ |
b0d623f7 | 108 | errno.h ev.h event.h fcntl.h file.h filio.h \ |
2d21ac55 | 109 | ioccom.h ioctl.h ipc.h \ |
3e170ce0 | 110 | ioctl_compat.h kernel.h kernel_types.h kern_event.h lock.h lockf.h \ |
fe8ab488 | 111 | kauth.h kdebug.h md5.h kern_control.h imgact.h malloc.h namei.h \ |
b0d623f7 A |
112 | mman.h mbuf.h mount.h netport.h param.h paths.h \ |
113 | proc.h queue.h random.h resource.h \ | |
2d21ac55 | 114 | sbuf.h posix_sem.h posix_shm.h sem.h shm.h \ |
fe8ab488 | 115 | select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \ |
91447636 A |
116 | sysctl.h syslimits.h syslog.h systm.h sys_domain.h time.h \ |
117 | types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \ | |
2d21ac55 A |
118 | utfconv.h vm.h vmparam.h vnode.h vnode_if.h xattr.h \ |
119 | _select.h _structs.h _types.h _endian.h protosw.h domain.h \ | |
91447636 | 120 | kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \ |
2d21ac55 | 121 | ttycom.h termios.h msg.h \ |
b0d623f7 | 122 | wait.h \ |
5ba3f43e | 123 | spawn.h timex.h commpage.h |
2d21ac55 A |
124 | # The last line was added to export needed headers for the MAC calls |
125 | # whose source is outside of the xnu/bsd tree. | |
91447636 | 126 | |
39037602 | 127 | # Installs header file for Apple internal use for kernel extensions - |
2d21ac55 | 128 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders |
91447636 | 129 | PRIVATE_KERNELFILES = \ |
6d2010ae | 130 | codesign.h \ |
d1ecb069 | 131 | cprotect.h \ |
6d2010ae | 132 | content_protection.h \ |
fe8ab488 | 133 | csr.h \ |
b0d623f7 | 134 | decmpfs.h \ |
91447636 | 135 | disktab.h \ |
5ba3f43e | 136 | eventhandler.h \ |
2d21ac55 | 137 | fbt.h \ |
6d2010ae | 138 | fileport.h \ |
b0d623f7 | 139 | fsctl.h \ |
2d21ac55 | 140 | fslog.h \ |
fe8ab488 A |
141 | kasl.h \ |
142 | kern_memorystatus.h \ | |
3e170ce0 | 143 | kpi_private.h \ |
39037602 | 144 | ktrace.h \ |
91447636 | 145 | mach_swapon.h \ |
5ba3f43e | 146 | monotonic.h \ |
91447636 A |
147 | msgbuf.h \ |
148 | eventvar.h \ | |
490019cf | 149 | persona.h \ |
fe8ab488 | 150 | proc_info.h \ |
39236c6e | 151 | pthread_shims.h \ |
b0d623f7 | 152 | quota.h \ |
5ba3f43e | 153 | reboot.h \ |
2d21ac55 A |
154 | sem_internal.h \ |
155 | shm_internal.h \ | |
91447636 | 156 | signalvar.h \ |
3e170ce0 | 157 | stackshot.h \ |
91447636 A |
158 | tty.h ttychars.h \ |
159 | ttydefaults.h ttydev.h \ | |
160 | user.h \ | |
2d21ac55 A |
161 | vfs_context.h \ |
162 | vmmeter.h \ | |
39037602 | 163 | reason.h \ |
6d2010ae | 164 | spawn_internal.h \ |
3e170ce0 A |
165 | priv.h \ |
166 | pgo.h \ | |
39037602 A |
167 | memory_maintenance.h \ |
168 | doc_tombstone.h \ | |
5ba3f43e A |
169 | fsevents.h \ |
170 | work_interval.h \ | |
1c79356b | 171 | |
d9a64523 A |
172 | XNU_ONLY_EXPORTS = \ |
173 | bsdtask_info.h \ | |
174 | file_internal.h \ | |
175 | filedesc.h \ | |
176 | guarded.h \ | |
177 | linker_set.h \ | |
178 | mount_internal.h \ | |
179 | munge.h \ | |
180 | pipe.h \ | |
181 | proc_internal.h \ | |
182 | pthread_internal.h \ | |
183 | resourcevar.h \ | |
184 | semaphore.h \ | |
185 | tree.h \ | |
186 | uio_internal.h \ | |
187 | ulock.h \ | |
188 | ux_exception.h \ | |
189 | vnode_internal.h | |
190 | ||
3e170ce0 | 191 | # /usr/include |
1c79356b A |
192 | INSTALL_MI_LIST = ${DATAFILES} |
193 | ||
6d2010ae | 194 | INSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h |
b0d623f7 | 195 | |
1c79356b A |
196 | INSTALL_MI_DIR = sys |
197 | ||
d9a64523 | 198 | EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} ${XNU_ONLY_EXPORTS} |
b0d623f7 | 199 | |
04b8595b | 200 | EXPORT_MI_GEN_LIST = syscall.h sysproto.h kdebugevents.h |
1c79356b A |
201 | |
202 | EXPORT_MI_DIR = sys | |
203 | ||
91447636 | 204 | # /System/Library/Frameworks/System.framework/PrivateHeaders |
3e170ce0 | 205 | INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES} |
91447636 A |
206 | |
207 | # /System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 A |
208 | INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} |
209 | ||
b0d623f7 A |
210 | INSTALL_KF_MI_LCL_GEN_LIST = sysproto.h |
211 | ||
91447636 | 212 | # /System/Library/Frameworks/Kernel.framework/Headers |
91447636 | 213 | INSTALL_KF_MI_LIST = ${KERNELFILES} |
1c79356b | 214 | |
04b8595b | 215 | INSTALL_KF_MI_GEN_LIST = |
b0d623f7 A |
216 | |
217 | MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh | |
04b8595b | 218 | MAKEKDEBUGEVENTS = $(SRCROOT)/bsd/kern/makekdebugevents.py |
b0d623f7 | 219 | |
fe8ab488 A |
220 | $(OBJROOT)/cscope.genhdrs: |
221 | $(_v)mkdir -p $(OBJROOT)/cscope.genhdrs | |
222 | ||
39037602 A |
223 | $(OBJROOT)/syscall.codes: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) |
224 | @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)$@$(Color0) from $(ColorF)$<$(Color0)"; | |
225 | $(_v)$(MAKESYSCALLS) $< trace > $@ | |
226 | ||
227 | $(OBJROOT)/trace.codes: $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes | |
228 | $(_v)sort -g $(SRCROOT)/bsd/kern/trace_codes $(OBJROOT)/syscall.codes >$@ | |
229 | ||
fe8ab488 | 230 | syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs |
39037602 | 231 | @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$<$(Color0)"; |
fe8ab488 | 232 | @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path |
b0d623f7 A |
233 | $(_v)$(MAKESYSCALLS) $< header > /dev/null |
234 | ||
fe8ab488 | 235 | sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs |
39037602 | 236 | @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$<$(Color0)"; |
fe8ab488 | 237 | @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path |
b0d623f7 A |
238 | $(_v)$(MAKESYSCALLS) $< proto > /dev/null |
239 | ||
39037602 A |
240 | kdebugevents.h: $(OBJROOT)/trace.codes $(MAKEKDEBUGEVENTS) $(OBJROOT)/cscope.genhdrs |
241 | @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0) from $(ColorF)$<$(Color0)"; | |
3e170ce0 | 242 | @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path |
04b8595b A |
243 | $(_v)$(MAKEKDEBUGEVENTS) $< > "$(OBJPATH)/bsd/sys/$@" |
244 | ||
6d2010ae A |
245 | MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh |
246 | _posix_availability.h: $(MAKE_POSIX_AVAILABILITY) | |
39037602 | 247 | @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0)"; |
316670eb | 248 | $(_v)$(MAKE_POSIX_AVAILABILITY) "$@" |
6d2010ae A |
249 | |
250 | MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh | |
251 | _symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING) | |
39037602 | 252 | @echo "[$(CMD_MC)] $(ColorH)GENERATING$(Color0) $(ColorLF)bsd/sys/$@$(Color0)"; |
316670eb | 253 | $(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@" |
6d2010ae | 254 | |
39037602 A |
255 | TRACE_CODES_DEST = \ |
256 | $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR)/trace.codes | |
1c79356b | 257 | |
39037602 A |
258 | $(TRACE_CODES_DEST): $(OBJROOT)/trace.codes |
259 | $(_v)$(MKDIR) $(DSTROOT)/$(INSTALL_SHARE_MISC_DIR) | |
260 | @echo INSTALL $(@F) | |
261 | $(_v)$(INSTALL) $(INSTALL_FLAGS) $(OBJROOT)/trace.codes $@ | |
1c79356b | 262 | |
39037602 A |
263 | do_textfiles_install:: $(TRACE_CODES_DEST) |
264 | ||
265 | include $(MakeInc_rule) | |
266 | include $(MakeInc_dir) |