+include ../../../config.mak
-TARGET = ../libmltcore.so
+TARGET = ../libmltcore$(LIBSUF)
OBJS = factory.o \
+ producer_colour.o \
+ producer_framebuffer.o \
+ producer_noise.o \
producer_ppm.o \
- filter_deinterlace.o \
+ filter_brightness.o \
+ filter_channelcopy.o \
+ filter_data_feed.o \
+ filter_data_show.o \
+ filter_gamma.o \
filter_greyscale.o \
- transition_composite.o
-
-CFLAGS = -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+ filter_luma.o \
+ filter_mirror.o \
+ filter_mono.o \
+ filter_obscure.o \
+ filter_region.o \
+ filter_rescale.o \
+ filter_resize.o \
+ filter_transition.o \
+ filter_watermark.o \
+ transition_composite.o \
+ transition_luma.o \
+ transition_mix.o \
+ transition_region.o \
+ consumer_null.o
+
+ASM_OBJS =
+
+CFLAGS += -I../..
+
+LDFLAGS+=-L../../framework -lmlt
SRCS := $(OBJS:.o=.c)
all: $(TARGET)
-$(TARGET): $(OBJS)
- $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+$(TARGET): $(OBJS) $(ASM_OBJS)
+ $(CC) $(SHFLAGS) -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
-dist-clean: clean
+distclean: clean
rm -f .depend
clean:
- rm -f $(OBJS) $(TARGET)
+ rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
+
+install: all
+ install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 644 ../data_fx.properties "$(DESTDIR)$(prefix)/share/mlt/modules"
ifneq ($(wildcard .depend),)
include .depend