]>
Commit | Line | Data |
---|---|---|
1c79356b A |
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 | MIGKSFLAGS = -DKERNEL_SERVER | |
11 | MIGKUFLAGS = -DKERNEL_USER -maxonstack 1024 | |
12 | ||
13 | MACH_FILES = mach_server.h mach_server.c | |
14 | ||
15 | MACH_PORT_FILES =mach_port_server.h mach_port_server.c | |
16 | ||
17 | EXC_FILES = exc_user.h exc_user.c exc_server.c | |
18 | ||
19 | MEMORY_OBJECT_FILES = memory_object_user.h memory_object_user.c | |
20 | ||
21 | MEMORY_OBJECT_DEFAULT_FILES = memory_object_default.h memory_object_default_user.c | |
22 | ||
23 | PROF_FILES = prof_user.c prof.h | |
24 | ||
25 | MACH_HOST_FILES = mach_host_server.h mach_host_server.c | |
26 | ||
27 | CLOCK_FILES = clock_server.h clock_server.c | |
28 | ||
29 | CLOCK_REPLY_FILES = clock_reply.h clock_reply_user.c | |
30 | ||
31 | BOOTSTRAP_FILES = bootstrap_server.h bootstrap_server.c | |
32 | ||
33 | LEDGER_FILES = ledger_user.c ledger_server.h ledger_server.c | |
34 | ||
35 | SYNC_FILES = sync_server.h sync_server.c | |
36 | ||
37 | MACH_USER_FILES = mach_user.h mach_user.c | |
38 | ||
39 | OTHERS = ${MACH_FILES} ${MACH_PORT_FILES} \ | |
40 | ${EXC_FILES} \ | |
41 | ${MEMORY_OBJECT_FILES} ${MEMORY_OBJECT_DEFAULT_FILES} \ | |
42 | ${PROF_FILES} ${MACH_HOST_FILES} ${LEDGER_FILES} \ | |
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 \ | |
74 | $< | |
75 | ||
76 | .ORDER: ${MEMORY_OBJECT_FILES} | |
77 | ||
78 | ${MEMORY_OBJECT_FILES}: mach/memory_object.defs | |
79 | ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} -DSEQNOS \ | |
80 | -header memory_object_user.h \ | |
81 | -user memory_object_user.c \ | |
82 | -server /dev/null \ | |
83 | $< | |
84 | ||
85 | .ORDER: ${MEMORY_OBJECT_DEFAULT_FILES} | |
86 | ||
87 | ${MEMORY_OBJECT_DEFAULT_FILES}: mach/memory_object_default.defs | |
88 | ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} -DSEQNOS \ | |
89 | -header memory_object_default.h \ | |
90 | -user memory_object_default_user.c \ | |
91 | -server /dev/null \ | |
92 | $< | |
93 | ||
94 | .ORDER: ${PROF_FILES} | |
95 | ||
96 | ${PROF_FILES}: mach/prof.defs | |
97 | ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \ | |
98 | -header prof.h \ | |
99 | -iheader prof_internal.h \ | |
100 | -user prof_user.c \ | |
101 | -server /dev/null \ | |
102 | $< | |
103 | ||
104 | .ORDER: ${MACH_HOST_FILES} | |
105 | ||
106 | ${MACH_HOST_FILES}: mach/mach_host.defs | |
107 | ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \ | |
108 | -header /dev/null \ | |
109 | -user /dev/null \ | |
110 | -sheader mach_host_server.h \ | |
111 | -server mach_host_server.c \ | |
112 | $< | |
113 | ||
114 | .ORDER: ${CLOCK_FILES} | |
115 | ||
116 | ${CLOCK_FILES}: mach/clock.defs | |
117 | ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \ | |
118 | -header /dev/null \ | |
119 | -user /dev/null \ | |
120 | -sheader clock_server.h \ | |
121 | -server clock_server.c \ | |
122 | $< | |
123 | ||
124 | .ORDER: ${CLOCK_REPLY_FILES} | |
125 | ${CLOCK_REPLY_FILES}: mach/clock_reply.defs | |
126 | ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \ | |
127 | -header clock_reply.h \ | |
128 | -user clock_reply_user.c \ | |
129 | -server /dev/null \ | |
130 | $< | |
131 | ||
132 | .ORDER: ${BOOTSTRAP_FILES} | |
133 | ||
134 | ${BOOTSTRAP_FILES}: mach/bootstrap.defs | |
135 | ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \ | |
136 | -header /dev/null \ | |
137 | -user /dev/null \ | |
138 | -sheader bootstrap_server.h \ | |
139 | -server bootstrap_server.c \ | |
140 | $< | |
141 | ||
142 | .ORDER: ${LEDGER_FILES} | |
143 | ||
144 | ${LEDGER_FILES}: mach/ledger.defs ${MACH_TYPES_DEFS} | |
145 | ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} ${MIGKUFLAGS} \ | |
146 | -header /dev/null \ | |
147 | -user ledger_user.c \ | |
148 | -sheader ledger_server.h \ | |
149 | -server ledger_server.c \ | |
150 | $< | |
151 | ||
152 | .ORDER: ${SYNC_FILES} | |
153 | ||
154 | ${SYNC_FILES}: mach/sync.defs | |
155 | ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \ | |
156 | -header /dev/null \ | |
157 | -user /dev/null \ | |
158 | -sheader sync_server.h \ | |
159 | -server sync_server.c \ | |
160 | $< | |
161 | ||
162 | ${MACH_USER_FILES}: mach/mach.defs | |
163 | ${_MIG_} -X ${_MIGFLAGS_} ${MIGKUFLAGS} \ | |
164 | -header mach_user.h \ | |
165 | -user mach_user.c \ | |
166 | -server /dev/null \ | |
167 | $< | |
168 | ||
169 | ||
170 | ||
171 | include $(MakeInc_rule) | |
172 | include $(MakeInc_dir) | |
173 | ||
174 |