Memory leaks and resample rework
[melted] / src / modules / dv / Makefile
index 22d999e..576d4f4 100644 (file)
@@ -1,10 +1,12 @@
+include ../../../config.mak
 
-TARGET = factory.o \
-                libmltdv.so
+TARGET = ../libmltdv.so
 
-OBJS = producer_libdv.o 
+OBJS = factory.o \
+          producer_libdv.o \
+          consumer_libdv.o
 
-CFLAGS=-I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
 
 LDFLAGS=-ldv -lpthread
 
@@ -24,6 +26,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