]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/atm/Makefile
xnu-3248.60.10.tar.gz
[apple/xnu.git] / osfmk / atm / Makefile
... / ...
CommitLineData
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 = \
10 atm_types.defs
11
12MIG_DEFS = \
13 atm_notification.defs
14
15MACH_PRIVATE_DEFS =
16
17#
18# MIG-generated headers that are traditionally used by user
19# level code.
20#
21MIG_USHDRS =
22
23MIG_UUHDRS =
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 = \
46 ${DATAFILES}
47
48EXPORT_MI_GEN_LIST = \
49 ${MIGINCLUDES}
50
51EXPORT_MI_DIR = atm
52
53${MIGINCLUDES} : ${MIG_TYPES}
54
55${MIG_UUHDRS} : \
56 %.h : %.defs
57 @echo MIG $@
58 $(_v)$(MIG) $(MIGFLAGS) \
59 -server /dev/null \
60 -user /dev/null \
61 -header $@ \
62 $<
63
64${MIG_USHDRS} : \
65 %_server.h : %.defs
66 @echo MIG $@
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
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 = \
90 atm_notification_user.c
91
92MIG_KSHDRS =
93
94MIG_KSSRC =
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
104 @echo MIG $@
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 @echo MIG $@
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)