]> git.saurik.com Git - apple/libc.git/blob - mach/Makefile.inc
Libc-262.3.2.tar.gz
[apple/libc.git] / mach / Makefile.inc
1 .PATH: ${.CURDIR}/${MACHINE_ARCH}/mach ${.CURDIR}/mach
2
3 .include "${.CURDIR}/mach/headers/Makefile.inc"
4 .include "${.CURDIR}/mach/servers/Makefile.inc"
5
6 # machine-dependent mach sources
7 .if exists(${.CURDIR}/${MACHINE_ARCH}/mach/Makefile.inc)
8 .include "${.CURDIR}/${MACHINE_ARCH}/mach/Makefile.inc"
9 .endif
10
11 MIGDEFS += \
12 clock.defs \
13 clock_priv.defs \
14 host_priv.defs \
15 host_security.defs \
16 ledger.defs \
17 lock_set.defs \
18 mach_port.defs \
19 mach_host.defs \
20 processor.defs \
21 processor_set.defs \
22 task.defs \
23 thread_act.defs \
24 vm_map.defs
25
26 #MIGHDRS = ${MIGDEFS:S/.defs$/.h/:S/^/${.CURDIR}\/mach\//}
27 MIGHDRS = ${MIGDEFS:S/.defs$/.h/}
28 MIGHDRS += clock_reply.h
29 MACH_INSTHDRS += ${MIGHDRS}
30
31 # These files are generated from the .defs files
32 MIGSRCS = ${MIGDEFS:S/.defs$/User.c/}
33
34 SRCS+= ${MIGDEFS:S/.defs$/User.defs/} \
35 bootstrap_ports.c \
36 clock_sleep.c \
37 error_codes.c \
38 excServer.c \
39 excUser.c \
40 exc_catcher.c \
41 exc_catcher_state.c \
42 exc_catcher_state_identity.c \
43 fprintf_stderr.c \
44 mig_allocate.c \
45 mig_deallocate.c \
46 mig_reply_setup.c \
47 mig_strncpy.c \
48 mach_error.c \
49 mach_error_string.c \
50 mach_init.c \
51 mach_init_ports.c \
52 mach_msg.c \
53 mach_traps.s \
54 ms_thread_switch.c \
55 notifyUser.c \
56 panic.c \
57 port_obj.c \
58 sbrk.c \
59 semaphore.c \
60 slot_name.c
61
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
65
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/}\
72 -o ${.TARGET}
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/}\
79 -o ${.TARGET}
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/}\
86 -o ${.TARGET}
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/}\
93 -o ${.TARGET}
94
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