]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach/Makefile.template
xnu-2050.48.11.tar.gz
[apple/xnu.git] / osfmk / mach / Makefile.template
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
10MIGKSFLAGS = -DKERNEL_SERVER
11MIGKUFLAGS = -DKERNEL_USER -maxonstack 1024
12
13MACH_FILES = mach_server.h mach_server.c
14
15MACH_PORT_FILES =mach_port_server.h mach_port_server.c
16
17EXC_FILES = exc_user.h exc_user.c exc_server.c
18
2d21ac55
A
19MACH_EXC_FILES = mach_exc_user.h mach_exc_user.c mach_exc_server.c
20
1c79356b
A
21MEMORY_OBJECT_FILES = memory_object_user.h memory_object_user.c
22
23MEMORY_OBJECT_DEFAULT_FILES = memory_object_default.h memory_object_default_user.c
24
25PROF_FILES = prof_user.c prof.h
26
27MACH_HOST_FILES = mach_host_server.h mach_host_server.c
28
29CLOCK_FILES = clock_server.h clock_server.c
30
31CLOCK_REPLY_FILES = clock_reply.h clock_reply_user.c
32
33BOOTSTRAP_FILES = bootstrap_server.h bootstrap_server.c
34
1c79356b
A
35SYNC_FILES = sync_server.h sync_server.c
36
37MACH_USER_FILES = mach_user.h mach_user.c
38
39OTHERS = ${MACH_FILES} ${MACH_PORT_FILES} \
2d21ac55 40 ${EXC_FILES} ${MACH_EXC_FILES} \
1c79356b 41 ${MEMORY_OBJECT_FILES} ${MEMORY_OBJECT_DEFAULT_FILES} \
316670eb 42 ${PROF_FILES} ${MACH_HOST_FILES} \
1c79356b
A
43 ${CLOCK_FILES} ${CLOCK_REPLY_FILES} ${BOOTSTRAP_FILES} \
44 ${BOOTSTRAP_FILES} ${SYNC_FILES} \
45 ${MACH_USER_FILES}
46
47.ORDER: ${MACH_FILES}
48
49${MACH_FILES}: mach/mach.defs
50 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
51 -header /dev/null \
52 -user /dev/null \
53 -sheader mach_server.h \
54 -server mach_server.c \
55 $<
56
57.ORDER: ${MACH_PORT_FILES}
58
59${MACH_PORT_FILES}: mach/mach_port.defs
60 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
61 -header /dev/null \
62 -user /dev/null \
63 -sheader mach_port_server.h \
64 -server mach_port_server.c \
65 $<
66
67.ORDER: ${EXC_FILES}
68${EXC_FILES}: mach/exc.defs
69 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \
70 -header exc_user.h \
71 -user exc_user.c \
72 -sheader exc_server.h \
73 -server exc_server.c \
2d21ac55
A
74 $<
75
76.ORDER: ${MACH_EXC_FILES}
77${MACH_EXC_FILES}: mach/mach_exc.defs
78 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \
79 -header mach_exc_user.h \
80 -user mach_exc_user.c \
81 -sheader mach_exc_server.h \
82 -server mach_exc_server.c \
1c79356b
A
83 $<
84
85.ORDER: ${MEMORY_OBJECT_FILES}
86
87${MEMORY_OBJECT_FILES}: mach/memory_object.defs
88 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} -DSEQNOS \
89 -header memory_object_user.h \
90 -user memory_object_user.c \
91 -server /dev/null \
92 $<
93
94.ORDER: ${MEMORY_OBJECT_DEFAULT_FILES}
95
96${MEMORY_OBJECT_DEFAULT_FILES}: mach/memory_object_default.defs
97 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} -DSEQNOS \
98 -header memory_object_default.h \
99 -user memory_object_default_user.c \
100 -server /dev/null \
101 $<
102
103.ORDER: ${PROF_FILES}
104
105${PROF_FILES}: mach/prof.defs
106 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \
107 -header prof.h \
108 -iheader prof_internal.h \
109 -user prof_user.c \
110 -server /dev/null \
111 $<
112
113.ORDER: ${MACH_HOST_FILES}
114
115${MACH_HOST_FILES}: mach/mach_host.defs
116 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
117 -header /dev/null \
118 -user /dev/null \
119 -sheader mach_host_server.h \
120 -server mach_host_server.c \
121 $<
122
123.ORDER: ${CLOCK_FILES}
124
125${CLOCK_FILES}: mach/clock.defs
126 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
127 -header /dev/null \
128 -user /dev/null \
129 -sheader clock_server.h \
130 -server clock_server.c \
131 $<
132
133.ORDER: ${CLOCK_REPLY_FILES}
134${CLOCK_REPLY_FILES}: mach/clock_reply.defs
135 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \
136 -header clock_reply.h \
137 -user clock_reply_user.c \
138 -server /dev/null \
139 $<
140
141.ORDER: ${BOOTSTRAP_FILES}
142
143${BOOTSTRAP_FILES}: mach/bootstrap.defs
144 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
145 -header /dev/null \
146 -user /dev/null \
147 -sheader bootstrap_server.h \
148 -server bootstrap_server.c \
149 $<
150
1c79356b
A
151.ORDER: ${SYNC_FILES}
152
153${SYNC_FILES}: mach/sync.defs
154 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
155 -header /dev/null \
156 -user /dev/null \
157 -sheader sync_server.h \
158 -server sync_server.c \
159 $<
160
161${MACH_USER_FILES}: mach/mach.defs
162 ${_MIG_} -X ${_MIGFLAGS_} ${MIGKUFLAGS} \
163 -header mach_user.h \
164 -user mach_user.c \
165 -server /dev/null \
166 $<
167
168
169
170include $(MakeInc_rule)
171include $(MakeInc_dir)
172
173