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