]> git.sesse.net Git - mlt/blobdiff - src/modules/core/Makefile
Minor optimisations, consumer avformat experimentation
[mlt] / src / modules / core / Makefile
index 8c505ee1b1e6d0e1829b50aa207f80eeb4e351df..a906252b7bdaf3e02bae8fd8a0285a7d7f9beff3 100644 (file)
@@ -1,22 +1,40 @@
+include ../../../config.mak
 
 TARGET = ../libmltcore.so
 
 OBJS = factory.o \
+          producer_colour.o \
+          producer_noise.o \
           producer_ppm.o \
-          filter_deinterlace.o \
-          filter_greyscale.o \
+          filter_brightness.o \
+          filter_channelcopy.o \
           filter_gamma.o \
+          filter_greyscale.o \
+          filter_luma.o \
+          filter_mirror.o \
+          filter_obscure.o \
+          filter_region.o \
           filter_resize.o \
-          transition_composite.o
+          filter_volume.o \
+          filter_watermark.o \
+          transition_composite.o \
+          transition_luma.o \
+          transition_mix.o \
+          transition_region.o 
+
+ASM_OBJS = composite_line_yuv_mmx.o
 
-CFLAGS = -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -DUSE_MMX -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
 
 SRCS := $(OBJS:.o=.c)
 
 all:   $(TARGET)
 
-$(TARGET): $(OBJS)
-               $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+$(TARGET): $(OBJS) $(ASM_OBJS)
+               $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
+
+composite_line_yuv_mmx.o: composite_line_yuv_mmx.S
+       $(CC) -o $@ -c composite_line_yuv_mmx.S
 
 depend:        $(SRCS)
                $(CC) -MM $(CFLAGS) $^ 1>.depend
@@ -25,7 +43,10 @@ dist-clean:  clean
                rm -f .depend
 
 clean: 
-               rm -f $(OBJS) $(TARGET) 
+               rm -f $(OBJS) $(ASM_OBJS) $(TARGET) 
+
+install: all
+       install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
 
 ifneq ($(wildcard .depend),)
 include .depend