avformat/configure, avformat/Makfile, avformat/factory.c: Add a --avformat-no-filters
[melted] / src / modules / resample / Makefile
index ced5ba8..b9d9fa5 100644 (file)
@@ -1,32 +1,34 @@
 include ../../../config.mak
 
-TARGET = ../libmltresample.so
+TARGET = ../libmltresample$(LIBSUF)
 
 OBJS = factory.o \
           filter_resample.o 
 
 CFLAGS += -I../..
 
-LDFLAGS= -lsamplerate
+LDFLAGS += -lsamplerate
+
+LDFLAGS+=-L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
 all:   $(TARGET)
 
 $(TARGET): $(OBJS)
-               $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+               $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
 
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
 
-dist-clean:    clean
+distclean:     clean
                rm -f .depend
 
 clean: 
                rm -f $(OBJS) $(TARGET)
 
 install: all
-       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+       install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
 
 ifneq ($(wildcard .depend),)
 include .depend