Portability modifications to scripts
[melted] / src / modules / sdl / Makefile
index 5107441..0ed2e6d 100644 (file)
@@ -1,12 +1,13 @@
+include ../../../config.mak
 
-TARGET = libmltsdl.so
+TARGET = ../libmltsdl.so
 
 OBJS = factory.o \
           consumer_sdl.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`
 
 SRCS := $(OBJS:.o=.c)
 
@@ -24,6 +25,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