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