]> git.saurik.com Git - apple/xnu.git/blame - osfmk/atm/Makefile
xnu-6153.41.3.tar.gz
[apple/xnu.git] / osfmk / atm / Makefile
CommitLineData
fe8ab488
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
6include $(MakeInc_cmd)
7include $(MakeInc_def)
8
9MIG_TYPES = \
39037602 10 atm_types.defs
fe8ab488
A
11
12MIG_DEFS = \
13 atm_notification.defs
14
39037602 15MACH_PRIVATE_DEFS =
fe8ab488
A
16
17#
18# MIG-generated headers that are traditionally used by user
19# level code.
20#
39037602 21MIG_USHDRS =
fe8ab488 22
39037602 23MIG_UUHDRS =
fe8ab488
A
24
25MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
26
27DATAFILES = \
28 atm_types.h \
29 ${MIG_TYPES} \
30 ${MIG_DEFS}
31
32INSTALL_MI_LIST = \
33 ${DATAFILES}
34
35INSTALL_KF_MI_LIST = \
36 ${DATAFILES}
37
38INSTALL_KF_MI_LCL_LIST = \
39 ${DATAFILES}
40
41INSTALL_MI_GEN_LIST =
42
43INSTALL_MI_DIR = atm
44
45EXPORT_MI_LIST = \
39037602 46 ${DATAFILES} atm_internal.h
fe8ab488
A
47
48EXPORT_MI_GEN_LIST = \
49 ${MIGINCLUDES}
50
51EXPORT_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
78INCFLAGS_MAKEFILE= -I..
79
80MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
81MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
82#
83# MIG-generated headers that are traditionally used by kernel
84# level code.
85#
86MIG_KUHDRS = \
87 atm_notification.h
88
89MIG_KUSRC = \
39037602 90 atm_notification_user.c
fe8ab488 91
39037602 92MIG_KSHDRS =
fe8ab488 93
39037602 94MIG_KSSRC =
fe8ab488
A
95
96COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
97
98do_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
122include $(MakeInc_rule)
123include $(MakeInc_dir)