+ Final updates for 0.2.1 - distclean corrected, soname usage in linking, version...
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 5 Dec 2005 11:35:55 +0000 (11:35 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 5 Dec 2005 11:35:55 +0000 (11:35 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@874 d19143bc-622f-0410-bfdd-b5b2a6649095

30 files changed:
Makefile
configure
src/albino/Makefile
src/framework/Makefile
src/humperdink/Makefile
src/inigo/Makefile
src/miracle/Makefile
src/modules/Makefile
src/modules/avformat/Makefile
src/modules/core/Makefile
src/modules/dv/Makefile
src/modules/feeds/Makefile
src/modules/fezzik/Makefile
src/modules/gtk2/Makefile
src/modules/inigo/Makefile
src/modules/jackrack/Makefile
src/modules/kino/Makefile
src/modules/lumas/Makefile
src/modules/motion_est/Makefile
src/modules/normalize/Makefile
src/modules/plus/Makefile
src/modules/resample/Makefile
src/modules/sdl/Makefile
src/modules/sox/Makefile
src/modules/valerie/Makefile
src/modules/vmfx/Makefile
src/modules/vorbis/Makefile
src/modules/westley/Makefile
src/modules/xine/Makefile
src/valerie/Makefile

index 3723d72..e4d8060 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ all clean:
                $(MAKE) -C $$subdir $@ || exit 1; \
        done
 
-dist-clean:
+distclean:
        rm mlt-config packages.dat; \
        list='$(SUBDIRS)'; \
        for subdir in $$list; do \
index 55aeac6..47ddfdb 100755 (executable)
--- a/configure
+++ b/configure
@@ -113,7 +113,7 @@ export build_dir=`dirname $0`
 export prefix=/usr/local
 export libdir=""
 export help=0
-export version=0.1.1
+export version=0.2.1
 export debug=true
 export mmx=true
 export gpl=false
index e527ef1..ea54d97 100644 (file)
@@ -18,7 +18,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index bc6fdcf..9c24a58 100644 (file)
@@ -1,6 +1,7 @@
 include ../../config.mak
 
-TARGET = libmlt$(LIBSUF)
+NAME = libmlt$(LIBSUF)
+TARGET = $(NAME).$(version)
 
 OBJS = mlt_frame.o \
           mlt_geometry.o \
@@ -50,25 +51,27 @@ SRCS := $(OBJS:.o=.c)
 
 CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\""
 
-LDFLAGS += -lm $(LIBDL) -lpthread
+LDFLAGS += -Wl,-soname,libmlt.so.$(version) -lm $(LIBDL) -lpthread
 
 all:   $(TARGET)
 
 $(TARGET): $(OBJS)
                $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
+               ln -sf $(TARGET) $(NAME)
 
 depend:        $(SRCS)
-               $(CC) -MM $(CFLAGS) $^ 1>.depend
+       $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
-               rm -f $(OBJS) $(TARGET)
+               rm -f $(OBJS) $(TARGET) $(NAME)
 
 install:
        install -d $(DESTDIR)$(libdir)
-       install -m 755 $(TARGET) $(DESTDIR)$(libdir)/libmlt$(LIBSUF)
+       install -m 755 $(TARGET) $(DESTDIR)$(libdir)
+       ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
        install -d "$(DESTDIR)$(prefix)/include/mlt/framework"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/framework"
 
index c27adae..266f6c1 100644 (file)
@@ -20,7 +20,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 02439ca..d5e90c7 100644 (file)
@@ -19,7 +19,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 0329aff..691142d 100644 (file)
@@ -1,6 +1,8 @@
 include ../../config.mak
 
 TARGET = miracle
+LIBNAME = libmiracle$(LIBSUF)
+LIBTARGET = $(LIBNAME).$(version)
 
 APP_OBJS = miracle.o
 
@@ -26,25 +28,27 @@ SRCS := $(OBJS:.o=.c)
 
 all:           $(TARGET)
 
-$(TARGET):     $(APP_OBJS) libmiracle$(LIBSUF)
+$(TARGET):     $(APP_OBJS) $(LIBTARGET)
                        $(CC) -o $@ $(APP_OBJS) -L. -lmiracle $(LDFLAGS)
 
-libmiracle$(LIBSUF):   $(LIB_OBJS)
-                       $(CC) $(SHFLAGS) -o $@ $(LIB_OBJS) $(LDFLAGS)
+$(LIBTARGET):  $(LIB_OBJS)
+                       $(CC) -Wl,-soname,$(LIBTARGET) $(SHFLAGS) -o $@ $(LIB_OBJS) $(LDFLAGS)
+                       ln -sf $(LIBTARGET) $(LIBNAME)
 
 depend:                $(SRCS)
                        $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                        rm -f .depend
 
 clean: 
-                       rm -f $(OBJS) $(TARGET) libmiracle$(LIBSUF)
+                       rm -f $(OBJS) $(TARGET) $(LIBNAME) $(LIBTARGET)
 
 install:       all
        install -d "$(DESTDIR)$(bindir)"
        install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
-       install -m 755 libmiracle$(LIBSUF) $(DESTDIR)$(libdir)/libmiracle$(LIBSUF)
+       install -m 755 $(LIBTARGET) $(DESTDIR)$(libdir)
+       ln -sf $(LIBTARGET) $(DESTDIR)$(libdir)/$(LIBNAME)
        mkdir -p "$(DESTDIR)$(prefix)/include/mlt/miracle"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/miracle"
 
index e93ade0..b5c4eaa 100644 (file)
@@ -10,7 +10,7 @@ all clean depend:
                fi \
        done
 
-dist-clean:
+distclean:
        rm -f consumers.dat filters.dat producers.dat transitions.dat make.inc; \
        list='$(SUBDIRS)'; \
        for subdir in $$list; do \
index 51adb42..b9e801a 100644 (file)
@@ -36,8 +36,8 @@ depend:       $(SRCS)
                if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg dep ; fi
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
-               if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg dist-clean ; fi
+distclean:     clean
+               if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg distclean ; fi
                rm -f .depend
 
 clean: 
index 0c1b49a..1842a82 100644 (file)
@@ -45,7 +45,7 @@ composite_line_yuv_mmx.o: composite_line_yuv_mmx.S
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 39abd76..4ec79ae 100644 (file)
@@ -22,7 +22,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index c557a6a..ce76aaa 100644 (file)
@@ -4,7 +4,7 @@ all:
 
 depend:
 
-dist-clean:
+distclean:
 
 clean:
 
index 6102e36..362e160 100644 (file)
@@ -20,7 +20,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 87465de..d2011ac 100644 (file)
@@ -46,7 +46,7 @@ scale_line_22_yuv_mmx.o: scale_line_22_yuv_mmx.S
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 1c56f4b..2318559 100644 (file)
@@ -19,7 +19,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 294643a..7c821b3 100644 (file)
@@ -33,7 +33,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index cfbb6a0..e6f780b 100644 (file)
@@ -31,7 +31,7 @@ $(TARGET): $(OBJS) $(CPPOBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend config.h config.mak
 
 clean: 
index 8d663ef..caec186 100644 (file)
@@ -10,7 +10,7 @@ create_lumas:
 
 depend:
 
-dist-clean:
+distclean:
        rm -rf PAL NTSC luma 
 
 clean:
index bd0c57a..83048d9 100644 (file)
@@ -24,7 +24,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 42e1113..eaec6ec 100644 (file)
@@ -19,7 +19,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 2577d66..b2bc473 100644 (file)
@@ -23,7 +23,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 14d94cd..c4cc9cb 100644 (file)
@@ -21,7 +21,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 6058a15..8383528 100644 (file)
@@ -36,7 +36,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 33e9865..7b6c2ab 100644 (file)
@@ -19,7 +19,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index b450cb3..2e3c439 100644 (file)
@@ -19,7 +19,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 75bb76d..afb164f 100644 (file)
@@ -22,7 +22,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 6720b31..57faead 100644 (file)
@@ -21,7 +21,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 9ba06bc..37c490b 100644 (file)
@@ -22,7 +22,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 08978c8..8249433 100644 (file)
@@ -21,7 +21,7 @@ $(TARGET): $(OBJS)
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
index 64c2fc1..d741743 100644 (file)
@@ -1,6 +1,7 @@
 include ../../config.mak
 
-TARGET = libvalerie$(LIBSUF)
+NAME = libvalerie$(LIBSUF)
+TARGET = libvalerie$(LIBSUF).$(version)
 
 OBJS = valerie.o \
           valerie_notifier.o \
@@ -25,24 +26,26 @@ INCS = valerie.h \
 SRCS := $(OBJS:.o=.c)
 
 CFLAGS += -I.. $(RDYNAMIC)
-LDFLAGS += -L../framework -lmlt -lpthread
+LDFLAGS += -Wl,-soname,$(TARGET) -L../framework -lmlt -lpthread
 
 all: $(TARGET)
 
 $(TARGET): $(OBJS)
                $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
+               ln -sf $(TARGET) $(NAME)
 
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
-               rm -f $(OBJS) $(TARGET)
+               rm -f $(OBJS) $(TARGET) $(NAME)
 
 install:       all
-       install -m 755 $(TARGET) $(DESTDIR)$(libdir)/libvalerie$(LIBSUF)
+       install -m 755 $(TARGET) $(DESTDIR)$(libdir)
+       ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(NAME)
        mkdir -p "$(DESTDIR)$(prefix)/include/mlt/valerie"
        install -m 644 $(INCS) "$(DESTDIR)$(prefix)/include/mlt/valerie"