add support for sunplus usb/ata bridges
[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 CLEANFILES = atasmart.strpool.c
23
24 MAINTAINERCLEANFILES =
25 noinst_DATA =
26
27 pkgconfigdir = $(libdir)/pkgconfig
28 pkgconfig_DATA = libatasmart.pc
29
30 include_HEADERS = \
31         atasmart.h
32
33 sbin_PROGRAMS = \
34         skdump \
35         sktest
36
37 noinst_PROGRAMS = \
38         strpool
39
40 lib_LTLIBRARIES = \
41         libatasmart.la
42
43 skdump_SOURCES = \
44         skdump.c
45 skdump_LDADD = \
46         libatasmart.la
47
48 sktest_SOURCE = \
49         sktest.c
50 sktest_LDADD = \
51         libatasmart.la
52
53 libatasmart_la_SOURCES = \
54         atasmart.strpool.c atasmart.h
55 libatasmart_la_LDFLAGS = \
56         -version-info $(LIBATASMART_VERSION_INFO)
57 libatasmart_la_LIBADD = \
58         $(LIBUDEV_LIBS)
59 libatasmart_la_CFLAGS = \
60         $(LIBUDEV_CFLAGS)
61
62 strpool_SOURCES = \
63         strpool.c
64
65 BUILT_SOURCES = \
66         atasmart.strpool.c
67
68 atasmart.strpool.c: atasmart.c strpool
69         $(top_builddir)/strpool $< $@