~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to shlibs/blkid/src/Makefile.am

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include $(top_srcdir)/config/include-Makefile.am
2
 
 
3
 
SUBDIRS = superblocks topology partitions .
4
 
 
5
 
common_ldadd =
6
 
common_cflags =
7
 
 
8
 
if HAVE_UUID
9
 
if BUILD_LIBUUID
10
 
common_ldadd += $(ul_libuuid_la)
11
 
common_cflags += -I$(ul_libuuid_srcdir)
12
 
else
13
 
common_ldadd += $(UUID_LIBS)
14
 
common_cflags += $(UUID_CFLAGS)
15
 
endif
16
 
endif
17
 
 
18
 
AM_CPPFLAGS += -I$(ul_libblkid_incdir) -I$(ul_libblkid_srcdir) $(common_cflags)
19
 
 
20
 
# includes
21
 
blkidincdir = $(includedir)/blkid
22
 
nodist_blkidinc_HEADERS = blkid.h
23
 
 
24
 
usrlib_exec_LTLIBRARIES = libblkid.la
25
 
libblkid_la_SOURCES = cache.c dev.c devname.c devno.c getsize.c llseek.c  \
26
 
                     probe.c read.c resolve.c save.c tag.c version.c verify.c \
27
 
                     encode.c blkidP.h superblocks/superblocks.h \
28
 
                     config.c evaluate.c \
29
 
                     $(blkidinc_HEADERS) \
30
 
                     $(top_srcdir)/lib/blkdev.c \
31
 
                     $(top_srcdir)/lib/linux_version.c \
32
 
                     $(top_srcdir)/lib/canonicalize.c \
33
 
                     $(top_srcdir)/lib/md5.c \
34
 
                     $(top_srcdir)/lib/crc32.c \
35
 
                     $(top_srcdir)/include/list.h \
36
 
                     $(top_srcdir)/lib/env.c \
37
 
                     $(top_srcdir)/lib/strutils.c
38
 
 
39
 
nodist_libblkid_la_SOURCES = blkid.h
40
 
 
41
 
libblkid_la_LIBADD = superblocks/libblkid_superblocks.la \
42
 
                     topology/libblkid_topology.la \
43
 
                     partitions/libblkid_partitions.la \
44
 
                     $(common_ldadd)
45
 
 
46
 
libblkid_la_DEPENDENCIES = $(libblkid_la_LIBADD) blkid.sym blkid.h.in
47
 
 
48
 
libblkid_la_LDFLAGS = -Wl,--version-script=$(ul_libblkid_srcdir)/blkid.sym \
49
 
                      -version-info $(LIBBLKID_VERSION_INFO)
50
 
 
51
 
tests = test_cache test_config test_dev test_devname test_devno \
52
 
        test_read test_resolve test_save test_tag test_verify test_evaluate
53
 
 
54
 
EXTRA_DIST = blkid.sym tst_types.c blkid.h.in
55
 
CLEANFILES = $(tests)
56
 
 
57
 
tests: all $(tests)
58
 
test_%: %.c
59
 
        $(AM_V_CC)$(COMPILE) -DTEST_PROGRAM $< .libs/libblkid.a -o $@ $(UUID_LIBS)
60
 
 
61
 
 
62
 
# move lib from $(usrlib_execdir) to $(libdir) if needed
63
 
install-exec-hook:
64
 
        if test "$(usrlib_execdir)" != "$(libdir)"; then \
65
 
                mkdir -p $(DESTDIR)$(libdir); \
66
 
                mv $(DESTDIR)$(usrlib_execdir)/libblkid.so.* $(DESTDIR)$(libdir); \
67
 
                so_img_name=$$(readlink $(DESTDIR)$(usrlib_execdir)/libblkid.so); \
68
 
                so_img_rel_target=$$(echo $(usrlib_execdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
69
 
                (cd $(DESTDIR)$(usrlib_execdir) && \
70
 
                        rm -f libblkid.so && \
71
 
                        $(LN_S) $$so_img_rel_target$(libdir)/$$so_img_name libblkid.so); \
72
 
        fi
73
 
 
74
 
uninstall-hook:
75
 
        rm -f $(DESTDIR)$(libdir)/libblkid.so*