]> git.ipfire.org Git - location/libloc.git/blob - Makefile.am
a47cdaeee557430d1095d2273cc096d54808438c
[location/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/libloc.h
40
41 lib_LTLIBRARIES = \
42 src/libloc.la
43
44 src_libloc_la_SOURCES =\
45 src/libloc-private.h \
46 src/libloc.c \
47 src/database.c \
48 src/database.h \
49 src/stringpool.c \
50 src/stringpool.h
51
52 EXTRA_DIST += src/libloc.sym
53
54 src_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
59 src_libloc_la_DEPENDENCIES = \
60 ${top_srcdir}/src/libloc.sym
61
62 pkgconfig_DATA = \
63 src/libloc.pc
64
65 EXTRA_DIST += \
66 src/libloc.pc.in
67
68 CLEANFILES += \
69 src/libloc.pc
70
71 TESTS = \
72 src/test-libloc \
73 src/test-stringpool \
74 src/test-database
75
76 check_PROGRAMS = \
77 src/test-libloc \
78 src/test-stringpool \
79 src/test-database
80
81 src_test_libloc_SOURCES = \
82 src/test-libloc.c
83
84 src_test_libloc_LDADD = \
85 src/libloc.la
86
87 src_test_stringpool_SOURCES = \
88 src/test-stringpool.c
89
90 src_test_stringpool_LDADD = \
91 src/libloc.la
92
93 src_test_database_SOURCES = \
94 src/test-database.c
95
96 src_test_database_LDADD = \
97 src/libloc.la