[Mplayer-cvslog] CVS: main/libdha Makefile,1.13,1.14

Dariush Pietrzak eyck at mplayerhq.hu
Sun Oct 20 10:43:12 CEST 2002


Update of /cvsroot/mplayer/main/libdha
In directory mail:/var/tmp.root/cvs-serv573

Modified Files:
	Makefile 
Log Message:
change versioning of libdha, patch from Guillem Jover <guillem.jover at menta.net>


Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/libdha/Makefile,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Makefile	22 Aug 2002 23:29:40 -0000	1.13
+++ Makefile	20 Oct 2002 08:43:09 -0000	1.14
@@ -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 @@
 	$(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 @@
 	$(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




More information about the MPlayer-cvslog mailing list