summaryrefslogtreecommitdiffstats
path: root/libdha
diff options
context:
space:
mode:
authoreyck <eyck@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-20 08:43:09 +0000
committereyck <eyck@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-20 08:43:09 +0000
commit648f9130ff1d01d6f7e3bc0ac96b93f592b4acc6 (patch)
tree1da58d015af68be48421320472bcc76047adb28f /libdha
parent7866d4ef3e1c7c4286229bfd14ed4efb8056dc86 (diff)
downloadmpv-648f9130ff1d01d6f7e3bc0ac96b93f592b4acc6.tar.bz2
mpv-648f9130ff1d01d6f7e3bc0ac96b93f592b4acc6.tar.xz
change versioning of libdha, patch from Guillem Jover <guillem.jover@menta.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7812 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha')
-rw-r--r--libdha/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/libdha/Makefile b/libdha/Makefile
index 63cf87039f..d46bfbaadf 100644
--- a/libdha/Makefile
+++ b/libdha/Makefile
@@ -2,12 +2,16 @@
include ../config.mak
-VERSION = 0.1
+MAJOR_VERSION = 0
+MINOR_VERSION = 1
+VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)
+
ifeq ($(TARGET_OS),CYGWIN)
SHORTNAME = libdha.dll
else
-SHORTNAME = libdha.so
+SHORTNAME = libdha.so.$(MAJOR_VERSION)
+SONAME_FLAGS = -Wl,-soname,$(SHORTNAME)
endif
LIBNAME = libdha.so.$(VERSION)
@@ -30,7 +34,7 @@ endif
$(CC) -c $(CFLAGS) -o $@ $<
$(LIBNAME): $(OBJS)
- $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS)
+ $(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS)
ln -sf $(LIBNAME) $(SHORTNAME)
all: $(LIBNAME) $(SHORTNAME)
@@ -42,10 +46,10 @@ test:
$(CC) test.c -o test $(SHORTNAME)
clean:
- rm -f *.o *.so *~
+ rm -f *.o *.so *.so.* *~
distclean:
- rm -f Makefile.bak *.o *.so test *~ .depend
+ rm -f Makefile.bak *.o *.so *.so.* test *~ .depend
rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db
dep: depend