Draft initial database format
[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 = \
39 src/loc/libloc.h
40
41lib_LTLIBRARIES = \
42 src/libloc.la
43
44src_libloc_la_SOURCES =\
45 src/libloc-private.h \
62b83e6d 46 src/libloc.c \
2601e83e
MT
47 src/database.c \
48 src/database.h \
62b83e6d
MT
49 src/stringpool.c \
50 src/stringpool.h
46aded9a
MT
51
52EXTRA_DIST += src/libloc.sym
53
54src_libloc_la_LDFLAGS = \
55 $(AM_LDFLAGS) \
56 -version-info $(LIBLOC_CURRENT):$(LIBLOC_REVISION):$(LIBLOC_AGE) \
57 -Wl,--version-script=$(top_srcdir)/src/libloc.sym
58
59src_libloc_la_DEPENDENCIES = \
60 ${top_srcdir}/src/libloc.sym
61
62pkgconfig_DATA = \
63 src/libloc.pc
64
65EXTRA_DIST += \
66 src/libloc.pc.in
67
68CLEANFILES += \
69 src/libloc.pc
70
71TESTS = \
62b83e6d 72 src/test-libloc \
2601e83e
MT
73 src/test-stringpool \
74 src/test-database
46aded9a
MT
75
76check_PROGRAMS = \
62b83e6d 77 src/test-libloc \
2601e83e
MT
78 src/test-stringpool \
79 src/test-database
46aded9a
MT
80
81src_test_libloc_SOURCES = \
82 src/test-libloc.c
83
84src_test_libloc_LDADD = \
85 src/libloc.la
62b83e6d
MT
86
87src_test_stringpool_SOURCES = \
88 src/test-stringpool.c
89
90src_test_stringpool_LDADD = \
91 src/libloc.la
2601e83e
MT
92
93src_test_database_SOURCES = \
94 src/test-database.c
95
96src_test_database_LDADD = \
97 src/libloc.la