Handle duplicated Total LBAs Written
[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 dist_doc_DATA = README
20
21 EXTRA_DIST = \
22         bootstrap.sh \
23         LGPL \
24         README \
25         atasmart.c \
26         blob-examples/README \
27         blob-examples/FUJITSU_MHY2120BH--0084000D \
28         blob-examples/FUJITSU_MHY2120BH--0085000B \
29         blob-examples/FUJITSU_MHY2250BH--0085000B \
30         blob-examples/FUJITSU_MHZ2160BH_G1--0084000A \
31         blob-examples/INTEL_SSDSA2MH080G1GC--045C8820 \
32         blob-examples/Maxtor_96147H8--BAC51KJ0 \
33         blob-examples/Maxtor_96147H8--BAC51KJ0--2 \
34         blob-examples/MCCOE64GEMPP--2.9.09 \
35         blob-examples/SAMSUNG_HD501LJ--CR100-12 \
36         blob-examples/SAMSUNG_MMCQE28G8MUP--0VA_VAM08L1Q \
37         blob-examples/SAMSUNG_MP0804H--UE100-14 \
38         blob-examples/ST320410A--3.39 \
39         blob-examples/ST9160821AS--3.CLH \
40         blob-examples/ST9100821AS--3.CME \
41         blob-examples/TOSHIBA_MK1651GSY--38IGT0G5T \
42         blob-examples/WDC_WD2500JB--00REA0-20.00K20 \
43         blob-examples/WDC_WD2500JS-75NCB3--10.02E04 \
44         blob-examples/WDC_WD5000AAKS--00TMA0-12.01C01 \
45         vala/atasmart.vapi
46
47 # build the strpool tool first
48 SUBDIRS = strpool .
49
50 CLEANFILES = atasmart.strpool.c
51
52 MAINTAINERCLEANFILES =
53 noinst_DATA =
54
55 pkgconfigdir = $(libdir)/pkgconfig
56 pkgconfig_DATA = libatasmart.pc
57
58 vapidir = $(datadir)/vala/vapi
59 vapi_DATA = vala/atasmart.vapi
60
61 include_HEADERS = \
62         atasmart.h
63
64 sbin_PROGRAMS = \
65         skdump \
66         sktest
67
68 lib_LTLIBRARIES = \
69         libatasmart.la
70
71 skdump_SOURCES = \
72         skdump.c
73 skdump_LDADD = \
74         libatasmart.la
75
76 sktest_SOURCE = \
77         sktest.c
78 sktest_LDADD = \
79         libatasmart.la
80
81 libatasmart_la_SOURCES = \
82         atasmart.strpool.c atasmart.h
83 libatasmart_la_LDFLAGS = \
84         -version-info $(LIBATASMART_VERSION_INFO) \
85         -export-symbols-regex '(^sk_.*)'
86 libatasmart_la_LIBADD = \
87         $(LIBUDEV_LIBS)
88 libatasmart_la_CFLAGS = \
89         $(LIBUDEV_CFLAGS)
90
91 BUILT_SOURCES = \
92         atasmart.strpool.c
93
94 strpool/strpool:
95         $(MAKE) -C strpool strpool
96
97 atasmart.strpool.c: atasmart.c strpool/strpool
98         $(top_builddir)/strpool/strpool $< $@
99
100 ACLOCAL_AMFLAGS = -I m4