]> git.saurik.com Git - apple/libdispatch.git/blob - src/Makefile.am
libdispatch-228.23.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/malloc_zone.h \
35 shims/perfmon.h \
36 shims/time.h \
37 shims/tsd.h
38
39 AM_CPPFLAGS=-I$(top_builddir) -I$(top_srcdir) \
40 -I$(top_srcdir)/private -I$(top_srcdir)/os
41
42 AM_CFLAGS=-Wall $(VISIBILITY_FLAGS) $(OMIT_LEAF_FP_FLAGS) \
43 $(MARCH_FLAGS) $(CBLOCKS_FLAGS) $(KQUEUE_CFLAGS)
44
45 libdispatch_la_LDFLAGS=-avoid-version
46
47 if HAVE_DARWIN_LD
48 libdispatch_la_LDFLAGS+=-Wl,-compatibility_version,1 \
49 -Wl,-current_version,$(VERSION) -Wl,-dead_strip
50 endif
51
52 if USE_OBJC
53 libdispatch_la_SOURCES+=object.m
54 libdispatch_la_OBJCFLAGS=$(AM_CFLAGS) -fobjc-gc
55 libdispatch_la_LDFLAGS+=-Wl,-upward-lobjc -Wl,-upward-lauto \
56 -Wl,-order_file,$(top_srcdir)/xcodeconfig/libdispatch.order \
57 -Wl,-alias_list,$(top_srcdir)/xcodeconfig/libdispatch.aliases \
58 -Wl,-unexported_symbols_list,$(top_srcdir)/xcodeconfig/libdispatch.unexport
59 endif
60
61 CLEANFILES=
62 DISTCLEANFILES=System objc
63
64 if USE_MIG
65 BUILT_SOURCES= \
66 protocolUser.c \
67 protocol.h \
68 protocolServer.c \
69 protocolServer.h
70
71 nodist_libdispatch_la_SOURCES=$(BUILT_SOURCES)
72 CLEANFILES+=$(BUILT_SOURCES)
73
74 %User.c %.h %Server.c %Server.h: $(abs_srcdir)/%.defs
75 $(MIG) -user $*User.c -header $*.h \
76 -server $*Server.c -sheader $*Server.h $<
77 endif