]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/Makefile
xnu-3247.10.11.tar.gz
[apple/xnu.git] / bsd / sys / Makefile
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
10 INSTINC_SUBDIRS = \
11 _types
12
13 EXPINC_SUBDIRS = \
14 _types
15
16 # Installs header file for user level -
17 # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
18 # $(DSTROOT)/usr/include/
19 DATAFILES = \
20 appleapiopts.h acct.h aio.h attr.h \
21 buf.h cdefs.h conf.h \
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 \
24 ioccom.h ioctl.h \
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 \
27 mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
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 \
30 select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h stdio.h \
31 sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \
32 timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \
33 ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
34 user.h utfconv.h utsname.h vadvise.h vcmd.h \
35 vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \
36 _select.h _structs.h _types.h _endian.h domain.h protosw.h \
37 spawn.h
38
39 # Installs header file for Apple internal use in user level -
40 # $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
41 PRIVATE_DATAFILES = \
42 attr.h \
43 cdefs.h \
44 coalition.h \
45 codesign.h \
46 content_protection.h \
47 csr.h \
48 decmpfs.h \
49 disk.h \
50 disklabel.h \
51 domain.h \
52 event.h \
53 fcntl.h \
54 fileport.h \
55 fsctl.h \
56 fsevents.h \
57 fsgetpath.h \
58 fslog.h \
59 guarded.h \
60 imgsrc.h \
61 ipcs.h \
62 kas_info.h \
63 kdebug.h \
64 kern_control.h \
65 kern_event.h \
66 kern_memorystatus.h \
67 kern_overrides.h \
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 \
76 sfi.h \
77 shm_internal.h \
78 socket.h \
79 socketvar.h \
80 sockio.h \
81 spawn.h \
82 spawn_internal.h \
83 stackshot.h \
84 sys_domain.h \
85 tree.h \
86 unpcb.h \
87 ux_exception.h \
88 work_interval.h \
89 process_policy.h \
90 proc_uuid_policy.h \
91 priv.h \
92 pgo.h \
93 memory_maintenance.h
94
95 # Installs header file for kernel extensions -
96 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
97 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
98 KERNELFILES = \
99 appleapiopts.h attr.h \
100 buf.h cdefs.h conf.h \
101 dir.h dirent.h disk.h disklabel.h dkstat.h \
102 errno.h ev.h event.h fcntl.h file.h filio.h \
103 ioccom.h ioctl.h ipc.h \
104 ioctl_compat.h kernel.h kernel_types.h kern_event.h lock.h lockf.h \
105 kauth.h kdebug.h md5.h kern_control.h imgact.h malloc.h namei.h \
106 mman.h mbuf.h mount.h netport.h param.h paths.h \
107 proc.h queue.h random.h resource.h \
108 sbuf.h posix_sem.h posix_shm.h sem.h shm.h \
109 select.h signal.h socket.h socketvar.h sockio.h stat.h stdio.h \
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 \
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 \
114 kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \
115 ttycom.h termios.h msg.h \
116 wait.h \
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.
120
121
122 # Installs header file for Apple internal use for kernel extensions -
123 # $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
124 PRIVATE_KERNELFILES = \
125 codesign.h \
126 cprotect.h \
127 content_protection.h \
128 csr.h \
129 decmpfs.h \
130 disktab.h \
131 fbt.h \
132 fileport.h \
133 fsctl.h \
134 fslog.h \
135 kasl.h \
136 kern_memorystatus.h \
137 kpi_private.h \
138 mach_swapon.h \
139 msgbuf.h \
140 eventvar.h \
141 proc_info.h \
142 pthread_shims.h \
143 quota.h \
144 sem_internal.h \
145 shm_internal.h \
146 signalvar.h \
147 stackshot.h \
148 tty.h ttychars.h \
149 ttydefaults.h ttydev.h \
150 user.h \
151 vfs_context.h \
152 vmmeter.h \
153 spawn_internal.h \
154 priv.h \
155 pgo.h \
156 memory_maintenance.h
157
158
159 # /usr/include
160 INSTALL_MI_LIST = ${DATAFILES}
161
162 INSTALL_MI_GEN_LIST = syscall.h _posix_availability.h _symbol_aliasing.h
163
164 INSTALL_MI_DIR = sys
165
166 EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h pthread_internal.h filedesc.h pipe.h resourcevar.h semaphore.h \
167 vnode_internal.h proc_internal.h file_internal.h mount_internal.h \
168 uio_internal.h tree.h munge.h
169
170 EXPORT_MI_GEN_LIST = syscall.h sysproto.h kdebugevents.h
171
172 EXPORT_MI_DIR = sys
173
174 # /System/Library/Frameworks/System.framework/PrivateHeaders
175 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
176
177 # /System/Library/Frameworks/Kernel.framework/PrivateHeaders
178 INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
179
180 INSTALL_KF_MI_LCL_GEN_LIST = sysproto.h
181
182 # /System/Library/Frameworks/Kernel.framework/Headers
183 INSTALL_KF_MI_LIST = ${KERNELFILES}
184
185 INSTALL_KF_MI_GEN_LIST =
186
187 MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
188 MAKEKDEBUGEVENTS = $(SRCROOT)/bsd/kern/makekdebugevents.py
189
190 $(OBJROOT)/cscope.genhdrs:
191 $(_v)mkdir -p $(OBJROOT)/cscope.genhdrs
192
193 syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
194 @echo "Generating bsd/sys/$@ from $<";
195 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
196 $(_v)$(MAKESYSCALLS) $< header > /dev/null
197
198 sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS) $(OBJROOT)/cscope.genhdrs
199 @echo "Generating bsd/sys/$@ from $<";
200 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
201 $(_v)$(MAKESYSCALLS) $< proto > /dev/null
202
203 kdebugevents.h: $(SRCROOT)/bsd/kern/trace.codes $(MAKEKDEBUGEVENTS) $(OBJROOT)/cscope.genhdrs
204 @echo "Generating bsd/sys/$@ from $<";
205 @echo "$(OBJPATH)/bsd/sys/$@" > $(OBJROOT)/cscope.genhdrs/$@.path
206 $(_v)$(MAKEKDEBUGEVENTS) $< > "$(OBJPATH)/bsd/sys/$@"
207
208 MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
209 _posix_availability.h: $(MAKE_POSIX_AVAILABILITY)
210 @echo "Generating bsd/sys/$@"
211 $(_v)$(MAKE_POSIX_AVAILABILITY) "$@"
212
213 MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
214 _symbol_aliasing.h: $(MAKE_SYMBOL_ALIASING)
215 @echo "Generating bsd/sys/$@"
216 $(_v)$(MAKE_SYMBOL_ALIASING) "$(SDKROOT)" "$@"
217
218 include $(MakeInc_rule)
219 include $(MakeInc_dir)
220
221