+include $(top_srcdir)/Makefile.am.inc
+
rootlibdir = $(exec_prefix)/$(libdir_name)
rootlib_LTLIBRARIES = \
libvolume_id.la
libvolume_id.h
libvolume_id_la_SOURCES =\
+ libvolume_id-private.h \
+ volume_id.c \
+ util.c \
+ md5.h \
+ md5.c \
ext.c \
fat.c \
hfs.c \
squashfs.c \
netware.c \
oracleasm.c \
- volume_id.c \
- util.h \
- util.c
+ btrfs.c
libvolume_id_la_LDFLAGS = \
-version-info $(VOLID_LT_CURRENT):$(VOLID_LT_REVISION):$(VOLID_LT_AGE) \
install-data-hook:
rm $(DESTDIR)$(rootlibdir)/libvolume_id.la
if test "$(prefix)" != "$(exec_prefix)"; then \
- rm $(DESTDIR)$(rootlibdir)/libvolume_id.so; \
mkdir -p $(DESTDIR)$(prefix)/$(libdir_name); \
- ln -sf $(rootlibdir)/libvolume_id.so.$(VOLID_LT_CURRENT).$(VOLID_LT_AGE).$(VOLID_LT_REVISION) \
+ mv $(DESTDIR)$(rootlibdir)/libvolume_id.a $(DESTDIR)$(prefix)/$(libdir_name)/; \
+ so_img_name=$$(readlink $(DESTDIR)$(rootlibdir)/libvolume_id.so); \
+ rm $(DESTDIR)$(rootlibdir)/libvolume_id.so; \
+ so_img_rel_target_prefix=$$(echo $(prefix)/$(libdir_name) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
+ ln -sf $$so_img_rel_target_prefix$(exec_prefix)/$(libdir_name)/$$so_img_name \
$(DESTDIR)$(prefix)/$(libdir_name)/libvolume_id.so; \
fi