Sepia fix and affine/alpha clean up
[melted] / src / modules / gtk2 / Makefile
index 3e8cd62..367bc56 100644 (file)
@@ -1,3 +1,4 @@
+include ../../../config.mak
 
 TARGET = ../libmltgtk2.so
 
@@ -10,9 +11,9 @@ OBJS = factory.o \
 ASM_OBJS = have_mmx.o \
                   scale_line_22_yuv_mmx.o
 
-CFLAGS = -O3 -DUSE_MMX `pkg-config gdk-pixbuf-2.0 --cflags` `pkg-config pangoft2 --cflags` -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS += `pkg-config gdk-pixbuf-2.0 --cflags` `pkg-config pangoft2 --cflags` -I../..
 
-LDFLAGS = `pkg-config gdk-pixbuf-2.0 --libs` `pkg-config pangoft2 --libs`
+LDFLAGS += `pkg-config gdk-pixbuf-2.0 --libs` `pkg-config pangoft2 --libs`
 
 SRCS := $(OBJS:.o=.c)
 
@@ -36,6 +37,9 @@ dist-clean:   clean
 clean: 
                rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
 
+install: all
+       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+
 ifneq ($(wildcard .depend),)
 include .depend
 endif