]> git.saurik.com Git - apple/xnu.git/blame - osfmk/device/Makefile
xnu-124.8.tar.gz
[apple/xnu.git] / osfmk / device / Makefile
CommitLineData
1c79356b
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
6
7include $(MakeInc_cmd)
8include $(MakeInc_def)
9
10MIG_DEFS = \
11 device.defs
12
13MIG_HDRS = \
14
15DATAFILES = \
16 device_types.h device_port.h device_types.defs \
17 ${MIG_DEFS}
18
19MIGINCLUDES = \
20
21INSTALL_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
22
23INSTALL_MI_DIR = device
24
25EXPORT_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
26
27EXPORT_MI_DIR = device
28
29.ORDER: ${MIG_HDRS} ${MIGINCLUDES}
30
31#
32# Build path
33#
34INCFLAGS_MAKEFILE= -I..
35
36MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
37MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1
38
39DEVICE_FILES = device_server.h device_server.c
40
41COMP_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
54include $(MakeInc_rule)
55include $(MakeInc_dir)
56
57