+CFLAGS += -I../..
+
+LDFLAGS += -L../../framework -lmlt -lpthread -lm
+
include ../../../config.mak
include config.mak
LDFLAGS += `pkg-config gdk-pixbuf-2.0 --libs`
endif
+ifdef USE_EXIF
+CFLAGS += $(EXIFCXXFLAGS)
+LDFLAGS += $(EXIFLIBS)
+endif
+
ifdef MMX_FLAGS
+ifndef ARCH_X86_64
ASM_OBJS = have_mmx.o scale_line_22_yuv_mmx.o
endif
+endif
ifdef USE_PANGO
OBJS += producer_pango.o
CFLAGS += `pkg-config pangoft2 --cflags`
LDFLAGS += `pkg-config pangoft2 --libs`
+ifeq ($(targetos),Darwin)
+LDFLAGS += -liconv
+endif
+ifeq ($(targetos),FreeBSD)
+LDFLAGS += -liconv
+endif
+ifeq ($(targetos), MinGW)
+LDFLAGS += -liconv
+endif
endif
-
-CFLAGS += -I../..
-LDFLAGS+=-L../../framework -lmlt
SRCS := $(OBJS:.o=.c)
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
-dist-clean: clean
+distclean: clean
rm -f .depend
clean:
rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+ install -d "$(DESTDIR)$(datadir)/mlt/gtk2"
+ install -m 644 *.yml "$(DESTDIR)$(datadir)/mlt/gtk2"
ifneq ($(wildcard .depend),)
include .depend