]> git.saurik.com Git - apple/libdispatch.git/blob - src/Makefile.am
libdispatch-501.20.1.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 transform.c \
20 protocol.defs \
21 provider.d \
22 data_internal.h \
23 internal.h \
24 io_internal.h \
25 object_internal.h \
26 queue_internal.h \
27 semaphore_internal.h \
28 shims.h \
29 source_internal.h \
30 trace.h \
31 shims/atomic.h \
32 shims/getprogname.h \
33 shims/hw_config.h \
34 shims/perfmon.h \
35 shims/time.h \
36 shims/tsd.h
37
38 AM_CPPFLAGS=-I$(top_builddir) -I$(top_srcdir) \
39 -I$(top_srcdir)/private -I$(top_srcdir)/os
40
41 AM_CFLAGS=-Wall $(VISIBILITY_FLAGS) $(OMIT_LEAF_FP_FLAGS) \
42 $(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 \
48 -Wl,-current_version,$(VERSION) -Wl,-dead_strip
49 endif
50
51 if USE_OBJC
52 libdispatch_la_SOURCES+=object.m
53 libdispatch_la_OBJCFLAGS=$(AM_CFLAGS) -fobjc-gc
54 libdispatch_la_LDFLAGS+=-Wl,-upward-lobjc -Wl,-upward-lauto \
55 -Wl,-order_file,$(top_srcdir)/xcodeconfig/libdispatch.order \
56 -Wl,-alias_list,$(top_srcdir)/xcodeconfig/libdispatch.aliases \
57 -Wl,-unexported_symbols_list,$(top_srcdir)/xcodeconfig/libdispatch.unexport
58 endif
59
60 CLEANFILES=
61 DISTCLEANFILES=System objc
62
63 if USE_MIG
64 BUILT_SOURCES= \
65 protocolUser.c \
66 protocol.h \
67 protocolServer.c \
68 protocolServer.h
69
70 nodist_libdispatch_la_SOURCES=$(BUILT_SOURCES)
71 CLEANFILES+=$(BUILT_SOURCES)
72
73 %User.c %.h %Server.c %Server.h: $(abs_srcdir)/%.defs
74 $(MIG) -user $*User.c -header $*.h \
75 -server $*Server.c -sheader $*Server.h $<
76 endif