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