bump to version 0.3.8
[melted] / src / modules / avformat / Makefile
index 0007fd9..d36d6c6 100644 (file)
@@ -1,16 +1,23 @@
 include ../../../config.mak
 include config.mak
 
+ifndef CODECS
+TARGET = ../libmltffmpeg$(LIBSUF)
+else
 TARGET = ../libmltavformat$(LIBSUF)
+endif
 
-OBJS = factory.o \
-          filter_avcolour_space.o \
-          filter_avresample.o \
-          filter_avdeinterlace.o
+OBJS = factory.o
 
+ifdef FILTERS
+OBJS += filter_avcolour_space.o \
+           filter_avresample.o \
+           filter_avdeinterlace.o
 ifdef SWSCALE
 OBJS += filter_swscale.o
 endif
+CFLAGS += -DFILTERS
+endif
 
 ifdef CODECS
 OBJS += producer_avformat.o \
@@ -58,7 +65,7 @@ distclean:    clean
 
 clean: 
        #if [ $(LOCAL_FFMPEG) ] ; then $(MAKE) -C ffmpeg clean ; fi
-       rm -f $(OBJS) $(TARGET)
+       rm -f $(OBJS) ../libmltffmpeg$(LIBSUF) ../libmltavformat$(LIBSUF)
 
 install: all
        install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
@@ -66,8 +73,9 @@ install: all
        install -m 644 producer_avformat.yml "$(DESTDIR)$(prefix)/share/mlt/avformat"
 
 uninstall:
-       rm "$(DESTDIR)$(libdir)/mlt/libmltavformat$(LIBSUF)"
-       rm -rf "$(DESTDIR)$(prefix)/share/mlt/avformat" 
+       rm "$(DESTDIR)$(libdir)/mlt/libmltavformat$(LIBSUF)" 2> /dev/null || true
+       rm "$(DESTDIR)$(libdir)/mlt/libmltffmpeg$(LIBSUF)" 2> /dev/null || true
+       rm -rf "$(DESTDIR)$(prefix)/share/mlt/avformat"
 
 ifneq ($(wildcard .depend),)
 include .depend