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