make install part 1
[melted] / src / modules / sdl / Makefile
index b527594..1571a29 100644 (file)
@@ -1,10 +1,11 @@
+include ../../../config.mak
 
 TARGET = ../libmltsdl.so
 
 OBJS = factory.o \
           consumer_sdl.o 
 
-CFLAGS = -I../../ `sdl-config --cflags` -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS = -O3 -I../../ `sdl-config --cflags` -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
 
 LDFLAGS= `sdl-config --libs`
 
@@ -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