summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/Makefile.am
blob: 592b390987040fa92ef55e6587f1910394e304cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
rootlibdir = $(exec_prefix)/$(libdir_name)
rootlib_LTLIBRARIES = \
	libvolume_id.la

include_HEADERS =\
	libvolume_id.h

libvolume_id_la_SOURCES =\
	ext.c \
	fat.c \
	hfs.c \
	highpoint.c \
	isw_raid.c \
	lsi_raid.c \
	via_raid.c \
	silicon_raid.c \
	nvidia_raid.c \
	promise_raid.c \
	adaptec_raid.c \
	jmicron_raid.c \
	ddf_raid.c \
	iso9660.c \
	jfs.c \
	linux_raid.c \
	linux_swap.c \
	lvm.c \
	ntfs.c \
	reiserfs.c \
	udf.c \
	ufs.c \
	xfs.c \
	cramfs.c \
	hpfs.c \
	romfs.c \
	sysv.c \
	minix.c \
	gfs.c \
	luks.c \
	ocfs.c \
	vxfs.c \
	squashfs.c \
	netware.c \
	oracleasm.c \
	volume_id.c \
	util.h \
	util.c

libvolume_id_la_LDFLAGS = \
	-version-info $(VOLID_LT_CURRENT):$(VOLID_LT_REVISION):$(VOLID_LT_AGE) \
	-export-symbols $(top_srcdir)/extras/volume_id/lib/exported_symbols

# move devel files to $(prefix)$(libdir_name) if needed
install-data-hook:
	rm  $(DESTDIR)$(rootlibdir)/libvolume_id.la
	if test "$(prefix)" != "$(exec_prefix)"; then \
		mkdir -p $(DESTDIR)$(prefix)/$(libdir_name); \
		mv $(DESTDIR)$(rootlibdir)/libvolume_id.a $(DESTDIR)$(prefix)/$(libdir_name)/; \
		rm $(DESTDIR)$(rootlibdir)/libvolume_id.so; \
		ln -sf $(rootlibdir)/libvolume_id.so.$(VOLID_LT_CURRENT).$(VOLID_LT_AGE).$(VOLID_LT_REVISION) \
			$(DESTDIR)$(prefix)/$(libdir_name)/libvolume_id.so; \
	fi

EXTRA_DIST = \
	exported_symbols

pkgconfigdir = $(prefix)/$(libdir_name)/pkgconfig
pkgconfig_DATA = libvolume_id.pc

distclean-local:
	rm -f Makefile.in