xref: /trueos/lib/libdispatch/Makefile (revision cb2de5a914fb4eb8a09e3f16bd2d923437d9a368)
1.include <bsd.init.mk>
2
3LIB= dispatch
4
5.PATH: ${.CURDIR}
6.PATH: ${.CURDIR}/dispatch
7.PATH: ${.CURDIR}/private
8.PATH: ${.CURDIR}/src
9.PATH: ${.CURDIR}/resolver
10
11CFLAGS+=	-I${.CURDIR}/../../include/apple -I${.CURDIR}/os -I${.CURDIR}/private
12CFLAGS+=	-I${.CURDIR} -I${MACHINE_INCLUDES} -I${.CURDIR}/../../include -I${.CURDIR}/../../sys
13CFLAGS+=	-I. -I${.CURDIR}/include -fblocks
14CFLAGS+=	-D__APPLE__ -DDISPATCH_USE_DTRACE=0
15CFLAGS+=	-DDISPATCH_USE_SIMPLE_ASL=0 -DUSE_OBJC=0 -D__BLOCKS__=1
16CFLAGS+=	-DDISPATCH_DEBUG=1
17
18protocolServer.c protocolUser.c protocol.h protocolServer.h: ${.CURDIR}/src/protocol.defs
19	mig ${CFLAGS}  -user protocolUser.c \
20	-server protocolServer.c -header protocol.h \
21	-sheader protocolServer.h ${.CURDIR}/src/protocol.defs
22
23SRCS =  protocolUser.c \
24	protocolServer.c \
25	allocator.c \
26	apply.c	\
27	benchmark.c \
28	data.c \
29	init.c \
30	introspection.c	\
31	io.c \
32	object.c \
33	once.c \
34	queue.c \
35	semaphore.c \
36	source.c \
37	time.c \
38	transform.c \
39	voucher.c \
40	resolver.c \
41	object.m
42
43INCSDIR= ${INCLUDEDIR}/dispatch
44INCS=	base.h \
45	block.h \
46	data.h \
47	dispatch.h \
48	group.h \
49	introspection.h \
50	io.h \
51	object.h \
52	once.h \
53	private.h \
54	queue.h \
55	semaphore.h \
56	source.h \
57	time.h
58
59INCS+=	benchmark.h \
60	data_private.h \
61	introspection_private.h \
62	io_private.h \
63	layout_private.h \
64	mach_private.h \
65	private.h \
66	queue_private.h \
67	source_private.h \
68	voucher_activity_private.h \
69	voucher_private.h
70
71CLEANFILES+= protocol.h protocolServer.c protocolServer.h protocolUser.c
72
73.include <bsd.lib.mk>
74