include ../../../config.mak
-TARGET = ../libmltxine.so
+TARGET = ../libmltxine$(LIBSUF)
OBJS = factory.o \
deinterlace.o \
cpu_accel.o \
filter_deinterlace.o
-CFLAGS = -O3 -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -DARCH_X86
+CFLAGS += -I../../ -DARCH_X86
+
+LDFLAGS+=-L../../framework -lmlt
SRCS := $(OBJS:.o=.c)
all: $(TARGET)
$(TARGET): $(OBJS)
- $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+ $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
-dist-clean: clean
+distclean: clean
rm -f .depend
clean:
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
ifneq ($(wildcard .depend),)
include .depend