SDL Preview provisional checkin
[melted] / src / modules / sdl / Makefile
index b527594..7a7004c 100644 (file)
@@ -1,12 +1,17 @@
+include ../../../config.mak
 
 TARGET = ../libmltsdl.so
 
 OBJS = factory.o \
-          consumer_sdl.o 
+          consumer_sdl.o \
+          consumer_sdl_preview.o \
+          consumer_sdl_still.o 
 
-CFLAGS = -I../../ `sdl-config --cflags` -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS += -I../.. `sdl-config --cflags`
 
-LDFLAGS= `sdl-config --libs`
+LDFLAGS += `sdl-config --libs`
+
+LDFLAGS+=-L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
@@ -24,6 +29,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