]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/Makefile
xnu-1456.1.26.tar.gz
[apple/xnu.git] / bsd / sys / Makefile
CommitLineData
1c79356b
A
1export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
2export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
3export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
4export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
5
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
593a1d5f
A
10ALLPRODUCTS = AppleTV iPhone MacOSX
11PRODUCT = $(shell tconf --product)
12EXTRAUNIFDEF = $(foreach x,$(ALLPRODUCTS),$(if $(findstring $(PRODUCT),$(x)),-DPRODUCT_$(x),-UPRODUCT_$(x)))
13SINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
14SPINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
15KINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
16KPINCFRAME_UNIFDEF += $(EXTRAUNIFDEF)
17
1c79356b
A
18INSTINC_SUBDIRS = \
19
20INSTINC_SUBDIRS_PPC = \
21
22INSTINC_SUBDIRS_I386 = \
23
24EXPINC_SUBDIRS = \
25
26EXPINC_SUBDIRS_PPC = \
27
28EXPINC_SUBDIRS_I386 = \
29
2d21ac55
A
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/
1c79356b 34DATAFILES = \
55e303ae 35 appleapiopts.h acct.h aio.h attr.h \
91447636 36 buf.h cdefs.h conf.h \
2d21ac55
A
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 \
91447636
A
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 \
2d21ac55 41 kauth.h kdebug.h kern_control.h kern_memorystatus.h lctx.h malloc.h \
b0d623f7 42 mbuf.h mman.h mount.h msg.h msgbuf.h netport.h param.h paths.h pipe.h poll.h \
2d21ac55
A
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 \
9bccf70c 45 select.h sem.h semaphore.h shm.h signal.h signalvar.h socket.h socketvar.h sockio.h stat.h \
b0d623f7 46 sysctl.h syslimits.h syslog.h sys_domain.h termios.h time.h \
1c79356b 47 timeb.h times.h tprintf.h trace.h tty.h ttychars.h ttycom.h \
9bccf70c 48 ttydefaults.h ttydev.h types.h ubc.h ucontext.h ucred.h uio.h un.h unistd.h unpcb.h \
2d21ac55 49 user.h utfconv.h utsname.h vadvise.h vcmd.h \
91447636 50 vm.h vmmeter.h vmparam.h vnioctl.h vnode.h vnode_if.h vstat.h wait.h xattr.h \
2d21ac55
A
51 _select.h _structs.h _types.h _endian.h domain.h protosw.h \
52 spawn.h
91447636 53
2d21ac55
A
54# Installs header file for Apple internal use in user level -
55# $(DSTROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
91447636 56PRIVATE_DATAFILES = \
2d21ac55 57 codesign.h \
91447636 58 disklabel.h \
b0d623f7
A
59 fsctl.h \
60 fsgetpath.h \
2d21ac55 61 fslog.h \
91447636 62 ipcs.h \
91447636 63 shm_internal.h \
2d21ac55 64 spawn_internal.h \
b0d623f7 65 tree.h \
91447636 66 ux_exception.h \
0c530ab8 67 proc_info.h \
91447636
A
68 vnioctl.h
69
2d21ac55
A
70# Installs header file for kernel extensions -
71# $(DSTROOT)/System/Library/Frameworks/Kernel.framework/Headers
72# $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
91447636
A
73KERNELFILES = \
74 appleapiopts.h attr.h \
75 buf.h cdefs.h conf.h \
2d21ac55 76 dir.h dirent.h disk.h disklabel.h dkstat.h \
b0d623f7 77 errno.h ev.h event.h fcntl.h file.h filio.h \
2d21ac55
A
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 \
b0d623f7
A
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 \
2d21ac55 83 sbuf.h posix_sem.h posix_shm.h sem.h shm.h \
91447636
A
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 \
2d21ac55
A
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 \
91447636 89 kpi_mbuf.h kpi_socket.h kpi_socketfilter.h \
2d21ac55 90 ttycom.h termios.h msg.h \
b0d623f7 91 wait.h \
2d21ac55
A
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.
91447636
A
95
96
2d21ac55
A
97# Installs header file for Apple internal use for kernel extensions -
98# $(DSTROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders
91447636 99PRIVATE_KERNELFILES = \
b0d623f7 100 decmpfs.h \
91447636 101 disktab.h \
2d21ac55 102 fbt.h \
b0d623f7 103 fsctl.h \
2d21ac55 104 fslog.h \
91447636
A
105 mach_swapon.h \
106 msgbuf.h \
107 eventvar.h \
b0d623f7 108 quota.h \
2d21ac55
A
109 sem_internal.h \
110 shm_internal.h \
91447636
A
111 signalvar.h \
112 tty.h ttychars.h \
113 ttydefaults.h ttydev.h \
114 user.h \
2d21ac55
A
115 vfs_context.h \
116 vmmeter.h \
117 spawn_internal.h
b0d623f7 118
1c79356b 119
2d21ac55 120# /System/Library/Frameworks/System.framework/Headers and /usr/include
1c79356b
A
121INSTALL_MI_LIST = ${DATAFILES}
122
b0d623f7
A
123INSTALL_MI_GEN_LIST = syscall.h
124
1c79356b
A
125INSTALL_MI_DIR = sys
126
b0d623f7
A
127EXPORT_MI_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES} linker_set.h bsdtask_info.h filedesc.h pipe.h resourcevar.h semaphore.h \
128 vnode_internal.h proc_internal.h file_internal.h mount_internal.h \
129 uio_internal.h
130
131EXPORT_MI_GEN_LIST = syscall.h sysproto.h
1c79356b
A
132
133EXPORT_MI_DIR = sys
134
91447636
A
135# /System/Library/Frameworks/System.framework/PrivateHeaders
136INSTALL_MI_LCL_LIST = ${DATAFILES} ${PRIVATE_DATAFILES}
137
138# /System/Library/Frameworks/Kernel.framework/PrivateHeaders
91447636
A
139INSTALL_KF_MI_LCL_LIST = ${KERNELFILES} ${PRIVATE_KERNELFILES}
140
b0d623f7
A
141INSTALL_KF_MI_LCL_GEN_LIST = sysproto.h
142
91447636 143# /System/Library/Frameworks/Kernel.framework/Headers
91447636 144INSTALL_KF_MI_LIST = ${KERNELFILES}
1c79356b 145
b0d623f7
A
146INSTALL_KF_MI_GEN_LIST =
147
148MAKESYSCALLS = $(SRCROOT)/bsd/kern/makesyscalls.sh
149
150syscall.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
151 @echo "Generating bsd/sys/$@ from $<";
152 $(_v)$(MAKESYSCALLS) $< header > /dev/null
153
154sysproto.h: $(SRCROOT)/bsd/kern/syscalls.master $(MAKESYSCALLS)
155 @echo "Generating bsd/sys/$@ from $<";
156 $(_v)$(MAKESYSCALLS) $< proto > /dev/null
157
1c79356b
A
158include $(MakeInc_rule)
159include $(MakeInc_dir)
160
161