Split database into a writer and reader
[people/ms/libloc.git] / Makefile.am
CommitLineData
46aded9a
MT
1EXTRA_DIST =
2CLEANFILES =
3ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
4AM_MAKEFLAGS = --no-print-directory
5
6AM_CPPFLAGS = \
7 -include $(top_builddir)/config.h \
8 -DSYSCONFDIR=\""$(sysconfdir)"\" \
9 -I${top_srcdir}/src
10
11AM_CFLAGS = ${my_CFLAGS} \
12 -fvisibility=hidden \
13 -ffunction-sections \
14 -fdata-sections
15
16AM_LDFLAGS = \
17 -Wl,--gc-sections \
18 -Wl,--as-needed
19
20LIBLOC_CURRENT=0
21LIBLOC_REVISION=0
22LIBLOC_AGE=0
23
24SED_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
33pkgconfigdir = $(libdir)/pkgconfig
34
35%.pc: %.pc.in Makefile
36 $(SED_PROCESS)
37
38pkginclude_HEADERS = \
a5db3e49 39 src/loc/format.h \
c182393f
MT
40 src/loc/libloc.h \
41 src/loc/writer.h
46aded9a
MT
42
43lib_LTLIBRARIES = \
44 src/libloc.la
45
46src_libloc_la_SOURCES =\
47 src/libloc-private.h \
62b83e6d 48 src/libloc.c \
a5db3e49
MT
49 src/as.c \
50 src/as.h \
2601e83e
MT
51 src/database.c \
52 src/database.h \
62b83e6d 53 src/stringpool.c \
c182393f
MT
54 src/stringpool.h \
55 src/writer.c
46aded9a
MT
56
57EXTRA_DIST += src/libloc.sym
58
59src_libloc_la_LDFLAGS = \
60 $(AM_LDFLAGS) \
61 -version-info $(LIBLOC_CURRENT):$(LIBLOC_REVISION):$(LIBLOC_AGE) \
62 -Wl,--version-script=$(top_srcdir)/src/libloc.sym
63
64src_libloc_la_DEPENDENCIES = \
65 ${top_srcdir}/src/libloc.sym
66
67pkgconfig_DATA = \
68 src/libloc.pc
69
70EXTRA_DIST += \
71 src/libloc.pc.in
72
73CLEANFILES += \
74 src/libloc.pc
75
76TESTS = \
62b83e6d 77 src/test-libloc \
2601e83e 78 src/test-stringpool \
a5db3e49
MT
79 src/test-database \
80 src/test-as
46aded9a
MT
81
82check_PROGRAMS = \
62b83e6d 83 src/test-libloc \
2601e83e 84 src/test-stringpool \
a5db3e49
MT
85 src/test-database \
86 src/test-as
46aded9a
MT
87
88src_test_libloc_SOURCES = \
89 src/test-libloc.c
90
91src_test_libloc_LDADD = \
92 src/libloc.la
62b83e6d 93
a5db3e49
MT
94src_test_as_SOURCES = \
95 src/test-as.c
96
97src_test_as_LDADD = \
98 src/libloc.la
99
62b83e6d
MT
100src_test_stringpool_SOURCES = \
101 src/test-stringpool.c
102
103src_test_stringpool_LDADD = \
104 src/libloc.la
2601e83e
MT
105
106src_test_database_SOURCES = \
107 src/test-database.c
108
109src_test_database_LDADD = \
110 src/libloc.la