]> git.saurik.com Git - apple/xnu.git/blob - osfmk/atm/Makefile
xnu-6153.11.26.tar.gz
[apple/xnu.git] / osfmk / atm / Makefile
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 = \
10 atm_types.defs
11
12 MIG_DEFS = \
13 atm_notification.defs
14
15 MACH_PRIVATE_DEFS =
16
17 #
18 # MIG-generated headers that are traditionally used by user
19 # level code.
20 #
21 MIG_USHDRS =
22
23 MIG_UUHDRS =
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 = \
46 ${DATAFILES} atm_internal.h
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
57 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
58 $(_v)$(MIG) $(MIGFLAGS) \
59 -server /dev/null \
60 -user /dev/null \
61 -header $@ \
62 $<
63
64 ${MIG_USHDRS} : \
65 %_server.h : %.defs
66 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
67 $(_v)$(MIG) $(MIGFLAGS) \
68 -server /dev/null \
69 -user /dev/null \
70 -header /dev/null \
71 -sheader $@ \
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 = \
90 atm_notification_user.c
91
92 MIG_KSHDRS =
93
94 MIG_KSSRC =
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
104 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
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}: \
113 %_server.c : %.defs
114 $(call makelog,$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0))
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)