Merge ../mlt
[melted] / src / modules / resample / Makefile
index 7250641..faf00a8 100644 (file)
@@ -6,10 +6,10 @@ OBJS = factory.o \
           filter_resample.o 
 
 CFLAGS += -I../..
+CFLAGS += `pkg-config --cflags samplerate`
 
-LDFLAGS += -lsamplerate
-
-LDFLAGS+=-L../../framework -lmlt
+LDFLAGS += -L../../framework -lmlt
+LDFLAGS += `pkg-config --libs samplerate`
 
 SRCS := $(OBJS:.o=.c)
 
@@ -21,14 +21,14 @@ $(TARGET): $(OBJS)
 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