]> git.saurik.com Git - apple/xnu.git/blob - osfmk/device/Makefile
xnu-7195.101.1.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 include $(MakeInc_cmd)
7 include $(MakeInc_def)
8
9 MIG_DEFS = \
10 device.defs
11
12 MIG_HDRS = \
13
14 DATAFILES = \
15 device_types.h device_port.h device_types.defs \
16 ${MIG_DEFS}
17
18 PRIVATE_DATAFILES = \
19 device_types.h
20
21 MIGINCLUDES = \
22
23 INSTALL_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
24
25 INSTALL_MI_LCL_LIST = ${PRIVATE_DATAFILES}
26
27 INSTALL_MI_DIR = device
28
29 EXPORT_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
30
31 EXPORT_MI_DIR = device
32
33 #
34 # Build path
35 #
36 INCFLAGS_MAKEFILE= -I..
37
38 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
39 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1
40
41 DEVICE_FILES = device_server.h device_server.c
42
43 COMP_FILES = ${DEVICE_FILES}
44
45 do_build_all:: $(COMP_FILES)
46
47 ${DEVICE_FILES}: device.defs
48 @$(LOG_MIG) "$@"
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
56 include $(MakeInc_rule)
57 include $(MakeInc_dir)