]> git.saurik.com Git - apple/xnu.git/blob - osfmk/UserNotification/Makefile
xnu-4903.221.2.tar.gz
[apple/xnu.git] / osfmk / UserNotification / 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 UNDTypes.defs
11
12 MIG_DEFS = \
13 UNDRequest.defs \
14 UNDReply.defs
15
16 PRIVATE_DATAFILES = \
17 UNDTypes.h \
18 ${MIG_TYPES} \
19 ${MIG_DEFS}
20
21 KERNELFILES = \
22 KUNCUserNotifications.h \
23 ${PRIVATE_DATAFILES}
24
25 INSTALL_MI_LIST =
26 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
27
28 INSTALL_MI_GEN_LIST =
29
30 INSTALL_MI_DIR = UserNotification
31
32 EXPORT_MI_LIST = ${KERNELFILES}
33
34 EXPORT_MI_GEN_LIST =
35
36 EXPORT_MI_DIR = UserNotification
37
38 #
39 # Build path
40 #
41 INCFLAGS_MAKEFILE= -I..
42
43 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
44 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1 -maxonstack 1024
45
46 MIG_KUHDRS = \
47 UNDRequest.h
48
49 MIG_KUSRC = \
50 UNDRequest.c
51
52 MIG_KSHDRS = \
53 UNDReplyServer.h
54
55 MIG_KSSRC = \
56 UNDReplyServer.c
57
58 COMP_FILES = ${MIG_KUSRC} ${MIG_KSSRC}
59
60 do_build_all:: $(COMP_FILES)
61
62 ${COMP_FILES} : ${MIG_TYPES}
63
64 ${MIG_KUSRC} : \
65 %.c : %.defs
66 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
67 $(_v)${MIG} ${MIGFLAGS} ${MIGKUFLAGS} \
68 -user $*.c \
69 -header $*.h \
70 -server /dev/null \
71 -sheader /dev/null \
72 $<
73
74 ${MIG_KSSRC}: \
75 %Server.c : %.defs
76 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
77 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
78 -user /dev/null \
79 -header /dev/null \
80 -server $*Server.c \
81 -sheader $*Server.h \
82 $<
83
84 include $(MakeInc_rule)
85 include $(MakeInc_dir)