]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/device/Makefile
xnu-3789.21.4.tar.gz
[apple/xnu.git] / osfmk / device / Makefile
... / ...
CommitLineData
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
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
18PRIVATE_DATAFILES = \
19 device_types.h
20
21MIGINCLUDES = \
22
23INSTALL_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
24
25INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
26
27INSTALL_MI_DIR = device
28
29EXPORT_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
30
31EXPORT_MI_DIR = device
32
33#
34# Build path
35#
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
45do_build_all:: $(COMP_FILES)
46
47${DEVICE_FILES}: device.defs
48 @echo "$(ColorM)MIG$(Color0) $(ColorF)$@$(Color0)"
49 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
50 -header /dev/null \
51 -user /dev/null \
52 -sheader device_server.h \
53 -server device_server.c \
54 $<
55
56include $(MakeInc_rule)
57include $(MakeInc_dir)