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