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