]> git.saurik.com Git - apple/xnu.git/blob - osfmk/device/Makefile
xnu-2782.10.72.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 MIGINCLUDES = \
19
20 INSTALL_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
21
22 INSTALL_MI_DIR = device
23
24 EXPORT_MI_LIST = ${DATAFILES} ${_MIG_HDRS_} ${MIGINCLUDES}
25
26 EXPORT_MI_DIR = device
27
28 #
29 # Build path
30 #
31 INCFLAGS_MAKEFILE= -I..
32
33 MIGKSFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_SERVER=1
34 MIGKUFLAGS = -DMACH_KERNEL_PRIVATE -DKERNEL_USER=1
35
36 DEVICE_FILES = device_server.h device_server.c
37
38 COMP_FILES = ${DEVICE_FILES}
39
40 do_build_all:: $(COMP_FILES)
41
42 ${DEVICE_FILES}: device.defs
43 @echo MIG $@
44 $(_v)${MIG} ${MIGFLAGS} ${MIGKSFLAGS} \
45 -header /dev/null \
46 -user /dev/null \
47 -sheader device_server.h \
48 -server device_server.c \
49 $<
50
51 include $(MakeInc_rule)
52 include $(MakeInc_dir)