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