+include ../../../config.mak
-TARGET = ../libmltfezzik.so
+TARGET = ../libmltfezzik$(LIBSUF)
OBJS = factory.o \
- producer_fezzik.o
+ producer_fezzik.o \
+ producer_hold.o
-CFLAGS = -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
+CFLAGS += -I../..
+
+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) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 644 ../fezzik.dict "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 644 ../fezzik.ini "$(DESTDIR)$(prefix)/share/mlt/modules"
+
ifneq ($(wildcard .depend),)
include .depend
endif