]> git.saurik.com Git - apple/xnu.git/blob - osfmk/default_pager/Makefile
xnu-3789.1.32.tar.gz
[apple/xnu.git] / osfmk / default_pager / 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 default_pager_types.defs
11
12 MIG_DEFS = \
13
14 MIG_USHDRS = \
15
16 MIG_UUHDRS = \
17
18 MIGINCLUDES = ${MIG_UUHDRS} ${MIG_USHDRS}
19
20 DATAFILES = \
21 default_pager_types.h \
22 ${MIG_DEFS}
23
24 INSTALL_MI_LIST = ${DATAFILES}
25
26 INSTALL_MI_GEN_LIST = ${MIGINCLUDES}
27
28 INSTALL_MI_DIR = default_pager
29
30 EXPORT_MI_LIST = \
31 ${DATAFILES}
32
33 EXPORT_MI_GEN_LIST = \
34 ${MIGINCLUDES}
35
36 EXPORT_MI_DIR = default_pager
37
38 ${MIGINCLUDES} : ${MIG_TYPES}
39
40 ${MIG_UUHDRS} : \
41 %.h : %.defs
42 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
43 $(_v)$(MIG) $(MIGFLAGS) \
44 -server /dev/null \
45 -user /dev/null \
46 -header $@ \
47 $<
48
49 ${MIG_USHDRS} : \
50 %_server.h : %.defs
51 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
52 $(_v)$(MIG) $(MIGFLAGS) \
53 -server /dev/null \
54 -user /dev/null \
55 -header /dev/null \
56 -sheader $@ \
57 $<
58
59 #
60 # Build path
61 #
62 INCFLAGS_MAKEFILE= -I..
63
64 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
65 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
66
67 #
68 # MIG-generated headers that are traditionally used by kernel
69 # level code.
70 #
71 MIG_KUHDRS = \
72
73 MIG_KUSRC = \
74
75 MIG_KSHDRS = \
76
77 MIG_KSSRC = \
78
79 #
80 # JMM -
81 # Since there are two generated header files with the same name, one for
82 # install and export, the other for internal use (and they are different)
83 # we can't explicitly list two rules for the same target. So rules for
84 # generating internal headers will be handled implicitly by creating rules
85 # to generate the internal C sources, and the headers get created as a
86 # side-effect.
87 #
88 # This is all temporary scaffolding, as we are moving to a model where
89 # the MIG-generated code is identical in all environments. At first, it
90 # will contain some environment-specific ifdefs, but over time should not
91 # even require that as we move towards making all the environments look
92 # the same.
93 #
94 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
95
96 do_build_all:: $(COMP_FILES)
97
98 ${COMP_FILES} : ${MIG_TYPES}
99
100 ${MIG_KUSRC} : \
101 %_user.c : %.defs
102 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
103 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
104 -user $*_user.c \
105 -header $*.h \
106 -server /dev/null \
107 -sheader /dev/null \
108 $<
109
110 ${MIG_KSSRC}: \
111 %_server.c : %.defs
112 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
113 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
114 -user /dev/null \
115 -header /dev/null \
116 -server $*_server.c \
117 -sheader $*_server.h \
118 $<
119
120 include $(MakeInc_rule)
121 include $(MakeInc_dir)