]>
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 A |
16 | # Installs header file for user level - |
17 | # $(DSTROOT)/System/Library/Frameworks/System.framework/Headers | |
18 | # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders | |
19 | # $(DSTROOT)/usr/include/ | |
1c79356b | 20 | DATAFILES = \ |
55e303ae | 21 | appleapiopts.h acct.h aio.h attr.h \ |
91447636 | 22 | buf.h cdefs.h conf.h \ |
2d21ac55 A |
23 | dir.h dirent.h disk.h dkstat.h dtrace.h dtrace_glue.h dtrace_impl.h \ |
24 | errno.h ev.h event.h fasttrap.h fasttrap_isa.h fcntl.h file.h filedesc.h filio.h gmon.h \ | |
91447636 A |
25 | ioccom.h ioctl.h \ |
26 | ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h loadable_fs.h lock.h lockf.h \ | |
2d21ac55 | 27 | kauth.h kdebug.h kern_control.h kern_memorystatus.h lctx.h malloc.h \ |
b0d623f7 | 28 | mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \ |
2d21ac55 A |
29 | proc.h proc_info.h ptrace.h queue.h quota.h random.h reboot.h resource.h resourcevar.h \ |
30 | sbuf.h posix_sem.h posix_shm.h sdt.h \ | |
9bccf70c | 31 | select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h \ |
b0d623f7 | 32 | sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \ |
1c79356b | 33 | timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \ |
9bccf70c | 34 | ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \ |
2d21ac55 | 35 | user.h utfconv.h utsname.h vadvise.h vcmd.h \ |
91447636 | 36 | vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \ |
2d21ac55 A |
37 | _select.h _structs.h _types.h _endian.h domain.h protosw.h \ |
38 | spawn.h | |
91447636 | 39 | |
2d21ac55 A |
40 | # Installs header file for Apple internal use in user level - |
41 | # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders | |
91447636 | 42 | PRIVATE_DATAFILES = \ |
2d21ac55 | 43 | codesign.h \ |
6d2010ae | 44 | content_protection.h \ |
316670eb | 45 | decmpfs.h \ |
91447636 | 46 | disklabel.h \ |
6d2010ae | 47 | fileport.h \ |
b0d623f7 A |
48 | fsctl.h \ |
49 | fsgetpath.h \ | |
2d21ac55 | 50 | fslog.h \ |
39236c6e | 51 | guarded.h \ |
6d2010ae | 52 | imgsrc.h \ |
91447636 | 53 | ipcs.h \ |
316670eb | 54 | kas_info.h \ |
39236c6e | 55 | kern_overrides.h \ |
91447636 | 56 | shm_internal.h \ |
2d21ac55 | 57 | spawn_internal.h \ |
b0d623f7 | 58 | tree.h \ |
91447636 | 59 | ux_exception.h \ |
6d2010ae | 60 | process_policy.h \ |
39236c6e | 61 | proc_uuid_policy.h \ |
6d2010ae | 62 | priv.h |
91447636 | 63 | |
2d21ac55 A |
64 | # Installs header file for kernel extensions - |
65 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers | |
66 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 A |
67 | KERNELFILES = \ |
68 | appleapiopts.h attr.h \ | |
69 | buf.h cdefs.h conf.h \ | |
2d21ac55 | 70 | dir.h dirent.h disk.h disklabel.h dkstat.h \ |
b0d623f7 | 71 | errno.h ev.h event.h fcntl.h file.h filio.h \ |
2d21ac55 A |
72 | ioccom.h ioctl.h ipc.h \ |
73 | ioctl_compat.h kernel.h kernel_types.h kern_event.h lctx.h lock.h lockf.h \ | |
316670eb | 74 | kauth.h kdebug.h md5.h kern_control.h kern_memorystatus.h imgact.h malloc.h namei.h \ |
b0d623f7 A |
75 | mman.h mbuf.h mount.h netport.h param.h paths.h \ |
76 | proc.h queue.h random.h resource.h \ | |
2d21ac55 | 77 | sbuf.h posix_sem.h posix_shm.h sem.h shm.h \ |
91447636 A |
78 | select.h signal.h socket.h socketvar.h sockio.h stat.h \ |
79 | sysctl.h syslimits.h syslog.h systm.h sys_domain.h time.h \ | |
80 | types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \ | |
2d21ac55 A |
81 | utfconv.h vm.h vmparam.h vnode.h vnode_if.h xattr.h \ |
82 | _select.h _structs.h _types.h _endian.h protosw.h domain.h \ | |
91447636 | 83 | kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \ |
2d21ac55 | 84 | ttycom.h termios.h msg.h \ |
b0d623f7 | 85 | wait.h \ |
2d21ac55 A |
86 | spawn.h |
87 | # The last line was added to export needed headers for the MAC calls | |
88 | # whose source is outside of the xnu/bsd tree. | |
91447636 A |
89 | |
90 | ||
2d21ac55 A |
91 | # Installs header file for Apple internal use for kernel extensions - |
92 | # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 | 93 | PRIVATE_KERNELFILES = \ |
6d2010ae | 94 | codesign.h \ |
d1ecb069 | 95 | cprotect.h \ |
6d2010ae | 96 | content_protection.h \ |
b0d623f7 | 97 | decmpfs.h \ |
91447636 | 98 | disktab.h \ |
2d21ac55 | 99 | fbt.h \ |
6d2010ae | 100 | fileport.h \ |
b0d623f7 | 101 | fsctl.h \ |
2d21ac55 | 102 | fslog.h \ |
91447636 A |
103 | mach_swapon.h \ |
104 | msgbuf.h \ | |
105 | eventvar.h \ | |
39236c6e | 106 | pthread_shims.h \ |
b0d623f7 | 107 | quota.h \ |
2d21ac55 A |
108 | sem_internal.h \ |
109 | shm_internal.h \ | |
91447636 A |
110 | signalvar.h \ |
111 | tty.h ttychars.h \ | |
112 | ttydefaults.h ttydev.h \ | |
113 | user.h \ | |
2d21ac55 A |
114 | vfs_context.h \ |
115 | vmmeter.h \ | |
6d2010ae A |
116 | spawn_internal.h \ |
117 | priv.h | |
b0d623f7 | 118 | |
1c79356b | 119 | |
2d21ac55 | 120 | # /System/Library/Frameworks/System.framework/Headers and /usr/include |
1c79356b A |
121 | INSTALL_MI_LIST = ${DATAFILES} |
122 | ||
6d2010ae | 123 | INSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h |
b0d623f7 | 124 | |
1c79356b A |
125 | INSTALL_MI_DIR = sys |
126 | ||
6d2010ae | 127 | EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h pthread_internal.h filedesc.h pipe.h resourcevar.h semaphore.h \ |
b0d623f7 | 128 | vnode_internal.h proc_internal.h file_internal.h mount_internal.h \ |
39236c6e | 129 | uio_internal.h tree.h munge.h kern_tests.h |
b0d623f7 A |
130 | |
131 | EXPORT_MI_GEN_LIST = syscall.h sysproto.h | |
1c79356b A |
132 | |
133 | EXPORT_MI_DIR = sys | |
134 | ||
91447636 A |
135 | # /System/Library/Frameworks/System.framework/PrivateHeaders |
136 | INSTALL_MI_LCL_LIST = ${DATAFILES} ${PRIVATE_DATAFILES} | |
137 | ||
138 | # /System/Library/Frameworks/Kernel.framework/PrivateHeaders | |
91447636 A |
139 | INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} |
140 | ||
b0d623f7 A |
141 | INSTALL_KF_MI_LCL_GEN_LIST = sysproto.h |
142 | ||
91447636 | 143 | # /System/Library/Frameworks/Kernel.framework/Headers |
91447636 | 144 | INSTALL_KF_MI_LIST = ${KERNELFILES} |
1c79356b | 145 | |
b0d623f7 A |
146 | INSTALL_KF_MI_GEN_LIST = |
147 | ||
148 | MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh | |
149 | ||
150 | syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) | |
151 | @echo "Generating bsd/sys/$@ from $<"; | |
152 | $(_v)$(MAKESYSCALLS) $< header > /dev/null | |
153 | ||
154 | sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) | |
155 | @echo "Generating bsd/sys/$@ from $<"; | |
156 | $(_v)$(MAKESYSCALLS) $< proto > /dev/null | |
157 | ||
6d2010ae A |
158 | MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh |
159 | _posix_availability.h: $(MAKE_POSIX_AVAILABILITY) | |
160 | @echo "Generating bsd/sys/$@" | |
316670eb | 161 | $(_v)$(MAKE_POSIX_AVAILABILITY) "$@" |
6d2010ae A |
162 | |
163 | MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh | |
164 | _symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING) | |
165 | @echo "Generating bsd/sys/$@" | |
316670eb | 166 | $(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@" |
6d2010ae | 167 | |
1c79356b A |
168 | include $(MakeInc_rule) |
169 | include $(MakeInc_dir) | |
170 | ||
171 |