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