actually use strpool for the atasmart sources
[platform/upstream/libatasmart.git] / Makefile.am
1 # This file is part of libatasmart.
2 #
3 # Copyright 2008 Lennart Poettering
4 #
5 # libatasmart is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation, either version 2.1 of the
8 # License, or (at your option) any later version.
9 #
10 # libatasmart is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with libatasmart. If not, If not, see
17 # <http://www.gnu.org/licenses/>.
18
19 EXTRA_DIST = bootstrap.sh LGPL README atasmart.vapi atasmart.c
20 SUBDIRS =
21
22 MAINTAINERCLEANFILES =
23 noinst_DATA =
24
25 pkgconfigdir = $(libdir)/pkgconfig
26 pkgconfig_DATA = libatasmart.pc
27
28 include_HEADERS = \
29         atasmart.h
30
31 bin_PROGRAMS = \
32         skdump \
33         sktest
34
35 noinst_PROGRAMS = \
36         strpool
37
38 lib_LTLIBRARIES = \
39         libatasmart.la
40
41 skdump_SOURCES = \
42         skdump.c
43 skdump_LDADD = \
44         libatasmart.la
45
46 sktest_SOURCE = \
47         sktest.c
48 sktest_LDADD = \
49         libatasmart.la
50
51 libatasmart_la_SOURCES = \
52         atasmart.strpool.c atasmart.h
53 libatasmart_la_LDFLAGS = \
54         -version-info 0:0:0
55
56 strpool_SOURCES = \
57         strpool.c
58
59 BUILT_SOURCES = \
60         atasmart.strpool.c
61
62 atasmart.strpool.c: atasmart.c strpool
63         $(builddir)/strpool $< $@