Big modification - switch to macros for parent class access
[melted] / src / modules / resample / Makefile
index b8b7542..0f036fa 100644 (file)
@@ -1,12 +1,15 @@
+include ../../../config.mak
 
 TARGET = ../libmltresample.so
 
 OBJS = factory.o \
           filter_resample.o 
 
-CFLAGS = -I../../ -Wall -g
+CFLAGS += -I../..
 
-LDFLAGS= -lsamplerate
+LDFLAGS += -lsamplerate
+
+LDFLAGS+=-L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
@@ -24,6 +27,9 @@ dist-clean:   clean
 clean: 
                rm -f $(OBJS) $(TARGET)
 
+install: all
+       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif