]> git.saurik.com Git - apple/libdispatch.git/blob - src/Makefile.am
libdispatch-187.5.tar.gz
[apple/libdispatch.git] / src / Makefile.am
1 #
2 #
3 #
4
5 lib_LTLIBRARIES=libdispatch.la
6
7 libdispatch_la_SOURCES= \
8 apply.c \
9 benchmark.c \
10 data.c \
11 init.c \
12 io.c \
13 object.c \
14 once.c \
15 queue.c \
16 semaphore.c \
17 source.c \
18 time.c \
19 protocol.defs \
20 provider.d \
21 data_internal.h \
22 internal.h \
23 io_internal.h \
24 object_internal.h \
25 queue_internal.h \
26 semaphore_internal.h \
27 shims.h \
28 source_internal.h \
29 trace.h \
30 shims/atomic.h \
31 shims/getprogname.h \
32 shims/hw_config.h \
33 shims/malloc_zone.h \
34 shims/perfmon.h \
35 shims/time.h \
36 shims/tsd.h
37
38 INCLUDES=-I$(top_builddir) -I$(top_srcdir) -I$(top_srcdir)/private \
39 @APPLE_LIBC_SOURCE_PATH@ @APPLE_LIBCLOSURE_SOURCE_PATH@ @APPLE_XNU_SOURCE_PATH@
40
41 libdispatch_la_CFLAGS=-Wall $(VISIBILITY_FLAGS) $(OMIT_LEAF_FP_FLAGS)
42 libdispatch_la_CFLAGS+=$(MARCH_FLAGS) $(CBLOCKS_FLAGS) $(KQUEUE_CFLAGS)
43
44 libdispatch_la_LDFLAGS=-avoid-version
45
46 if HAVE_DARWIN_LD
47 libdispatch_la_LDFLAGS+=-Wl,-compatibility_version,1 -Wl,-current_version,$(VERSION)
48 endif
49
50 CLEANFILES=
51
52 if USE_MIG
53 BUILT_SOURCES= \
54 protocolUser.c \
55 protocol.h \
56 protocolServer.c \
57 protocolServer.h
58
59 nodist_libdispatch_la_SOURCES=$(BUILT_SOURCES)
60 CLEANFILES+=$(BUILT_SOURCES)
61
62 %User.c %.h %Server.c %Server.h: $(abs_srcdir)/%.defs
63 $(MIG) -user $*User.c -header $*.h \
64 -server $*Server.c -sheader $*Server.h $<
65 endif
66
67 if USE_XNU_SOURCE
68 # hack for pthread_machdep.h's #include <System/machine/cpu_capabilities.h>
69 $(libdispatch_la_OBJECTS): $(abs_srcdir)/System
70 $(abs_srcdir)/System:
71 $(LN_S) -fh "@APPLE_XNU_SOURCE_SYSTEM_PATH@" System
72 CLEANFILES+=System
73 endif