Finalisation of first phase of cut handling (unmanaged)
[melted] / src / modules / westley / Makefile
index 576a6ea..5d9234b 100644 (file)
@@ -1,3 +1,4 @@
+include ../../../config.mak
 
 TARGET = ../libmltwestley.so
 
@@ -5,9 +6,11 @@ OBJS = factory.o \
           consumer_westley.o \
           producer_westley.o
 
-CFLAGS = -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread `xml2-config --cflags`
+CFLAGS += -I../../ `xml2-config --cflags`
 
-LDFLAGS = `xml2-config --libs`
+LDFLAGS += `xml2-config --libs`
+
+LDFLAGS+=-L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
@@ -25,6 +28,10 @@ dist-clean:  clean
 clean: 
                rm -f $(OBJS) $(TARGET) 
 
+install: all
+       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+       install -m 644 westley.dtd "$(prefix)/share/mlt/modules"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif