00763a8ad88d0d0121faec39c3260d0bc4769805
[people/ms/libloc.git] / Makefile.am
1 EXTRA_DIST =
2 CLEANFILES =
3 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
4 AM_MAKEFLAGS = --no-print-directory
5
6 AM_CPPFLAGS = \
7 -include $(top_builddir)/config.h \
8 -DSYSCONFDIR=\""$(sysconfdir)"\" \
9 -I${top_srcdir}/src
10
11 AM_CFLAGS = ${my_CFLAGS} \
12 -fvisibility=hidden \
13 -ffunction-sections \
14 -fdata-sections
15
16 AM_LDFLAGS = \
17 -Wl,--gc-sections \
18 -Wl,--as-needed
19
20 LIBLOC_CURRENT=0
21 LIBLOC_REVISION=0
22 LIBLOC_AGE=0
23
24 SED_PROCESS = \
25 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
26 -e 's,@VERSION\@,$(VERSION),g' \
27 -e 's,@prefix\@,$(prefix),g' \
28 -e 's,@exec_prefix\@,$(exec_prefix),g' \
29 -e 's,@libdir\@,$(libdir),g' \
30 -e 's,@includedir\@,$(includedir),g' \
31 < $< > $@ || rm $@
32
33 pkgconfigdir = $(libdir)/pkgconfig
34
35 %.pc: %.pc.in Makefile
36 $(SED_PROCESS)
37
38 pkginclude_HEADERS = \
39 src/loc/format.h \
40 src/loc/libloc.h \
41 src/loc/writer.h
42
43 lib_LTLIBRARIES = \
44 src/libloc.la
45
46 src_libloc_la_SOURCES =\
47 src/libloc-private.h \
48 src/libloc.c \
49 src/as.c \
50 src/as.h \
51 src/database.c \
52 src/database.h \
53 src/network.c \
54 src/stringpool.c \
55 src/stringpool.h \
56 src/writer.c
57
58 EXTRA_DIST += src/libloc.sym
59
60 src_libloc_la_LDFLAGS = \
61 $(AM_LDFLAGS) \
62 -version-info $(LIBLOC_CURRENT):$(LIBLOC_REVISION):$(LIBLOC_AGE) \
63 -Wl,--version-script=$(top_srcdir)/src/libloc.sym
64
65 src_libloc_la_DEPENDENCIES = \
66 ${top_srcdir}/src/libloc.sym
67
68 pkgconfig_DATA = \
69 src/libloc.pc
70
71 EXTRA_DIST += \
72 src/libloc.pc.in
73
74 CLEANFILES += \
75 src/libloc.pc
76
77 TESTS = \
78 src/test-libloc \
79 src/test-stringpool \
80 src/test-database \
81 src/test-as \
82 src/test-network
83
84 check_PROGRAMS = \
85 src/test-libloc \
86 src/test-stringpool \
87 src/test-database \
88 src/test-as \
89 src/test-network
90
91 src_test_libloc_SOURCES = \
92 src/test-libloc.c
93
94 src_test_libloc_LDADD = \
95 src/libloc.la
96
97 src_test_as_SOURCES = \
98 src/test-as.c
99
100 src_test_as_LDADD = \
101 src/libloc.la
102
103 src_test_network_SOURCES = \
104 src/test-network.c
105
106 src_test_network_LDADD = \
107 src/libloc.la
108
109 src_test_stringpool_SOURCES = \
110 src/test-stringpool.c
111
112 src_test_stringpool_LDADD = \
113 src/libloc.la
114
115 src_test_database_SOURCES = \
116 src/test-database.c
117
118 src_test_database_LDADD = \
119 src/libloc.la