1 .PATH: ${.CURDIR}/${MACHINE_ARCH}/mach ${.CURDIR}/mach
3 .include "${.CURDIR}/mach/headers/Makefile.inc"
4 .include "${.CURDIR}/mach/servers/Makefile.inc"
6 # machine-dependent mach sources
7 .if exists(${.CURDIR}/${MACHINE_ARCH}/mach/Makefile.inc)
8 .include "${.CURDIR}/${MACHINE_ARCH}/mach/Makefile.inc"
26 #MIGHDRS = ${MIGDEFS:S/.defs$/.h/:S/^/${.CURDIR}\/mach\//}
27 MIGHDRS = ${MIGDEFS:S/.defs$/.h/}
28 MIGHDRS += clock_reply.h
29 MACH_INSTHDRS += ${MIGHDRS}
31 # These files are generated from the .defs files
32 MIGSRCS = ${MIGDEFS:S/.defs$/User.c/}
34 SRCS+= ${MIGDEFS:S/.defs$/User.defs/} \
42 exc_catcher_state_identity.c \
62 CLEANFILES += ${MIGHDRS} ${MIGHDRS:S/.h$/User.c/} \
63 ${MIGHDRS:S/.h/Server.c/} exc.h excUser.c excServer.c \
64 notify.h notifyUser.c notifyServer.c
66 ${MIGDEFS:S/.defs$/User.So/}:
67 mig -user ${.TARGET:S/.So$/.c/} \
68 -server ${.TARGET:S/User.So$/Server.c/} \
69 -header ${.TARGET:S/User.So$/.h/} \
70 ${.CURDIR}/mach/${.TARGET:S/User.So$/.defs/}
71 ${CC} ${CFLAGS} -Os -c ${.TARGET:S/.So$/.c/}\
73 ${MIGDEFS:S/.defs$/User.do/}:
74 mig -user ${.TARGET:S/.do$/.c/} \
75 -server ${.TARGET:S/User.do$/Server.c/} \
76 -header ${.TARGET:S/User.do$/.h/} \
77 ${.CURDIR}/mach/${.TARGET:S/User.do$/.defs/}
78 ${CC} -g -DDEBUG ${CFLAGS} -c ${.TARGET:S/.do$/.c/}\
80 ${MIGDEFS:S/.defs$/User.po/}:
81 mig -user ${.TARGET:S/.po$/.c/} \
82 -server ${.TARGET:S/User.po$/Server.c/} \
83 -header ${.TARGET:S/User.po$/.h/} \
84 ${.CURDIR}/mach/${.TARGET:S/User.po$/.defs/}
85 ${CC} -pg -DPROFILE ${CFLAGS} -c ${.TARGET:S/.po$/.c/}\
87 ${MIGDEFS:S/.defs$/User.o/}:
88 mig -user ${.TARGET:S/.o$/.c/} \
89 -server ${.TARGET:S/User.o$/Server.c/} \
90 -header ${.TARGET:S/User.o$/.h/} \
91 ${.CURDIR}/mach/${.TARGET:S/User.o$/.defs/}
92 ${CC} -static ${CFLAGS} -c ${.TARGET:S/.o$/.c/}\
95 excServer.c: ${.CURDIR}/mach/exc.defs
96 mig -user excUser.c -server excServer.c -header exc.h \
97 ${.CURDIR}/mach/exc.defs
98 excUser.c: ${.CURDIR}/mach/exc.defs
99 mig -user excUser.c -server excServer.c -header exc.h \
100 ${.CURDIR}/mach/exc.defs
101 notifyUser.c: ${.CURDIR}/mach/notify.defs
102 mig -user notifyUser.c -server notifyServer.c -header notify.h \
103 ${.CURDIR}/mach/notify.defs