Add ACLOCAL_AMFLAGS = -I m4
[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 = \
20         bootstrap.sh \
21         LGPL \
22         README \
23         atasmart.vapi \
24         atasmart.c \
25         blob-examples/README \
26         blob-examples/FUJITSU_MHY2120BH--0084000D \
27         blob-examples/FUJITSU_MHZ2160BH_G1--0084000A \
28         blob-examples/Maxtor_96147H8--BAC51KJ0 \
29         blob-examples/SAMSUNG_HD501LJ--CR100-12 \
30         blob-examples/ST320410A--3.39 \
31         blob-examples/ST9160821AS--3.CLH \
32         blob-examples/WDC_WD2500JB--00REA0-20.00K20 \
33         blob-examples/WDC_WD2500JS-75NCB3--10.02E04 \
34         blob-examples/WDC_WD5000AAKS--00TMA0-12.01C01
35
36 SUBDIRS =
37
38 CLEANFILES = atasmart.strpool.c
39
40 MAINTAINERCLEANFILES =
41 noinst_DATA =
42
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = libatasmart.pc
45
46 include_HEADERS = \
47         atasmart.h
48
49 sbin_PROGRAMS = \
50         skdump \
51         sktest
52
53 noinst_PROGRAMS = \
54         strpool
55
56 lib_LTLIBRARIES = \
57         libatasmart.la
58
59 skdump_SOURCES = \
60         skdump.c
61 skdump_LDADD = \
62         libatasmart.la
63
64 sktest_SOURCE = \
65         sktest.c
66 sktest_LDADD = \
67         libatasmart.la
68
69 libatasmart_la_SOURCES = \
70         atasmart.strpool.c atasmart.h
71 libatasmart_la_LDFLAGS = \
72         -version-info $(LIBATASMART_VERSION_INFO)
73 libatasmart_la_LIBADD = \
74         $(LIBUDEV_LIBS)
75 libatasmart_la_CFLAGS = \
76         $(LIBUDEV_CFLAGS)
77
78 strpool_SOURCES = \
79         strpool.c
80
81 BUILT_SOURCES = \
82         atasmart.strpool.c
83
84 atasmart.strpool.c: atasmart.c strpool
85         $(top_builddir)/strpool $< $@
86
87 ACLOCAL_AMFLAGS = -I m4