]> git.saurik.com Git - apple/xnu.git/blob - osfmk/device/Makefile
xnu-792.18.15.tar.gz
[apple/xnu.git] / osfmk / device / 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
7 include $(MakeInc_cmd)
8 include $(MakeInc_def)
9
10 MIG_DEFS = \
11 device.defs
12
13 MIG_HDRS = \
14
15 DATAFILES = \
16 device_types.h device_port.h device_types.defs \
17 ${MIG_DEFS}
18
19 MIGINCLUDES = \
20
21 INSTALL_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
22
23 INSTALL_MI_DIR = device
24
25 EXPORT_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
26
27 EXPORT_MI_DIR = device
28
29 .ORDER: ${MIG_HDRS} ${MIGINCLUDES}
30
31 #
32 # Build path
33 #
34 INCFLAGS_MAKEFILE= -I..
35
36 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
37 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1
38
39 DEVICE_FILES = device_server.h device_server.c
40
41 COMP_FILES = ${DEVICE_FILES}
42
43 .ORDER: ${DEVICE_FILES}
44
45 ${DEVICE_FILES}: device.defs
46 ${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
47 -header /dev/null \
48 -user /dev/null \
49 -sheader device_server.h \
50 -server device_server.c \
51 $<
52
53
54 include $(MakeInc_rule)
55 include $(MakeInc_dir)
56
57