Initial commit
[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 \
46 src/libloc.c
47
48EXTRA_DIST += src/libloc.sym
49
50src_libloc_la_LDFLAGS = \
51 $(AM_LDFLAGS) \
52 -version-info $(LIBLOC_CURRENT):$(LIBLOC_REVISION):$(LIBLOC_AGE) \
53 -Wl,--version-script=$(top_srcdir)/src/libloc.sym
54
55src_libloc_la_DEPENDENCIES = \
56 ${top_srcdir}/src/libloc.sym
57
58pkgconfig_DATA = \
59 src/libloc.pc
60
61EXTRA_DIST += \
62 src/libloc.pc.in
63
64CLEANFILES += \
65 src/libloc.pc
66
67TESTS = \
68 src/test-libloc
69
70check_PROGRAMS = \
71 src/test-libloc
72
73src_test_libloc_SOURCES = \
74 src/test-libloc.c
75
76src_test_libloc_LDADD = \
77 src/libloc.la