]>
Commit | Line | Data |
---|---|---|
fe8ab488 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 | include $(MakeInc_cmd) | |
7 | include $(MakeInc_def) | |
8 | ||
9 | MIG_TYPES = \ | |
39037602 | 10 | atm_types.defs |
fe8ab488 A |
11 | |
12 | MIG_DEFS = \ | |
13 | atm_notification.defs | |
14 | ||
39037602 | 15 | MACH_PRIVATE_DEFS = |
fe8ab488 A |
16 | |
17 | # | |
18 | # MIG-generated headers that are traditionally used by user | |
19 | # level code. | |
20 | # | |
39037602 | 21 | MIG_USHDRS = |
fe8ab488 | 22 | |
39037602 | 23 | MIG_UUHDRS = |
fe8ab488 A |
24 | |
25 | MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS} | |
26 | ||
27 | DATAFILES = \ | |
28 | atm_types.h \ | |
29 | ${MIG_TYPES} \ | |
30 | ${MIG_DEFS} | |
31 | ||
32 | INSTALL_MI_LIST = \ | |
33 | ${DATAFILES} | |
34 | ||
35 | INSTALL_KF_MI_LIST = \ | |
36 | ${DATAFILES} | |
37 | ||
38 | INSTALL_KF_MI_LCL_LIST = \ | |
39 | ${DATAFILES} | |
40 | ||
41 | INSTALL_MI_GEN_LIST = | |
42 | ||
43 | INSTALL_MI_DIR = atm | |
44 | ||
45 | EXPORT_MI_LIST = \ | |
39037602 | 46 | ${DATAFILES} atm_internal.h |
fe8ab488 A |
47 | |
48 | EXPORT_MI_GEN_LIST = \ | |
49 | ${MIGINCLUDES} | |
50 | ||
51 | EXPORT_MI_DIR = atm | |
52 | ||
53 | ${MIGINCLUDES} : ${MIG_TYPES} | |
54 | ||
55 | ${MIG_UUHDRS} : \ | |
56 | %.h : %.defs | |
cb323159 | 57 | $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)) |
fe8ab488 A |
58 | $(_v)$(MIG) $(MIGFLAGS) \ |
59 | -server /dev/null \ | |
60 | -user /dev/null \ | |
39037602 | 61 | -header $@ \ |
fe8ab488 A |
62 | $< |
63 | ||
64 | ${MIG_USHDRS} : \ | |
65 | %_server.h : %.defs | |
cb323159 | 66 | $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)) |
fe8ab488 A |
67 | $(_v)$(MIG) $(MIGFLAGS) \ |
68 | -server /dev/null \ | |
69 | -user /dev/null \ | |
70 | -header /dev/null \ | |
39037602 | 71 | -sheader $@ \ |
fe8ab488 A |
72 | $< |
73 | ||
74 | # | |
75 | # Build path | |
76 | # | |
77 | ||
78 | INCFLAGS_MAKEFILE= -I.. | |
79 | ||
80 | MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1 | |
81 | MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024 | |
82 | # | |
83 | # MIG-generated headers that are traditionally used by kernel | |
84 | # level code. | |
85 | # | |
86 | MIG_KUHDRS = \ | |
87 | atm_notification.h | |
88 | ||
89 | MIG_KUSRC = \ | |
39037602 | 90 | atm_notification_user.c |
fe8ab488 | 91 | |
39037602 | 92 | MIG_KSHDRS = |
fe8ab488 | 93 | |
39037602 | 94 | MIG_KSSRC = |
fe8ab488 A |
95 | |
96 | COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC} | |
97 | ||
98 | do_build_all:: $(COMP_FILES) | |
99 | ||
100 | ${COMP_FILES} : ${MIG_TYPES} | |
101 | ||
102 | ${MIG_KUSRC} : \ | |
103 | %_user.c : %.defs | |
cb323159 | 104 | $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)) |
fe8ab488 A |
105 | $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \ |
106 | -user $*_user.c \ | |
107 | -header $*.h \ | |
108 | -server /dev/null \ | |
109 | -sheader /dev/null \ | |
110 | $< | |
111 | ||
112 | ${MIG_KSSRC}: \ | |
39037602 | 113 | %_server.c : %.defs |
cb323159 | 114 | $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)) |
fe8ab488 A |
115 | $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \ |
116 | -user /dev/null \ | |
117 | -header /dev/null \ | |
118 | -server $*_server.c \ | |
119 | -sheader $*_server.h \ | |
120 | $< | |
121 | ||
122 | include $(MakeInc_rule) | |
123 | include $(MakeInc_dir) |