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
10 MIGKSFLAGS = -DKERNEL_SERVER
11 MIGKUFLAGS = -DKERNEL_USER -maxonstack 1024
13 MACH_FILES = mach_server.h mach_server.c
15 MACH_PORT_FILES =mach_port_server.h mach_port_server.c
17 EXC_FILES = exc_user.h exc_user.c exc_server.c
19 MACH_EXC_FILES = mach_exc_user.h mach_exc_user.c mach_exc_server.c
21 MEMORY_OBJECT_FILES = memory_object_user.h memory_object_user.c
23 MEMORY_OBJECT_DEFAULT_FILES = memory_object_default.h memory_object_default_user.c
25 PROF_FILES = prof_user.c prof.h
27 MACH_HOST_FILES = mach_host_server.h mach_host_server.c
29 CLOCK_FILES = clock_server.h clock_server.c
31 CLOCK_REPLY_FILES = clock_reply.h clock_reply_user.c
33 BOOTSTRAP_FILES = bootstrap_server.h bootstrap_server.c
35 LEDGER_FILES = ledger_user.c ledger_server.h ledger_server.c
37 SYNC_FILES = sync_server.h sync_server.c
39 MACH_USER_FILES = mach_user.h mach_user.c
41 OTHERS = ${MACH_FILES} ${MACH_PORT_FILES} \
42 ${EXC_FILES} ${MACH_EXC_FILES} \
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} \
51 ${MACH_FILES}: mach/mach.defs
52 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
55 -sheader mach_server.h \
56 -server mach_server.c \
59 .ORDER: ${MACH_PORT_FILES}
61 ${MACH_PORT_FILES}: mach/mach_port.defs
62 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
65 -sheader mach_port_server.h \
66 -server mach_port_server.c \
70 ${EXC_FILES}: mach/exc.defs
71 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \
74 -sheader exc_server.h \
75 -server exc_server.c \
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 \
87 .ORDER: ${MEMORY_OBJECT_FILES}
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 \
96 .ORDER: ${MEMORY_OBJECT_DEFAULT_FILES}
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 \
105 .ORDER: ${PROF_FILES}
107 ${PROF_FILES}: mach/prof.defs
108 ${_MIG_} ${_MIGFLAGS_} ${MIGKUFLAGS} \
110 -iheader prof_internal.h \
115 .ORDER: ${MACH_HOST_FILES}
117 ${MACH_HOST_FILES}: mach/mach_host.defs
118 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
121 -sheader mach_host_server.h \
122 -server mach_host_server.c \
125 .ORDER: ${CLOCK_FILES}
127 ${CLOCK_FILES}: mach/clock.defs
128 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
131 -sheader clock_server.h \
132 -server clock_server.c \
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 \
143 .ORDER: ${BOOTSTRAP_FILES}
145 ${BOOTSTRAP_FILES}: mach/bootstrap.defs
146 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
149 -sheader bootstrap_server.h \
150 -server bootstrap_server.c \
153 .ORDER: ${LEDGER_FILES}
155 ${LEDGER_FILES}: mach/ledger.defs ${MACH_TYPES_DEFS}
156 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} ${MIGKUFLAGS} \
158 -user ledger_user.c \
159 -sheader ledger_server.h \
160 -server ledger_server.c \
163 .ORDER: ${SYNC_FILES}
165 ${SYNC_FILES}: mach/sync.defs
166 ${_MIG_} ${_MIGFLAGS_} ${MIGKSFLAGS} \
169 -sheader sync_server.h \
170 -server sync_server.c \
173 ${MACH_USER_FILES}: mach/mach.defs
174 ${_MIG_} -X ${_MIGFLAGS_} ${MIGKUFLAGS} \
175 -header mach_user.h \
182 include $(MakeInc_rule)
183 include $(MakeInc_dir)