]> git.sesse.net Git - mlt/blobdiff - src/modules/gtk2/Makefile
Fix gtk2 build on mingw.
[mlt] / src / modules / gtk2 / Makefile
index d2011ac0caa8aa43e7c7ea991b7344e45b73013b..d8d20aeaedbc5ca628ff51f25835a50ce621ecf0 100644 (file)
@@ -1,3 +1,7 @@
+CFLAGS += -I../..
+
+LDFLAGS += -L../../framework -lmlt -lpthread -lm
+
 include ../../../config.mak
 include config.mak
 
@@ -17,21 +21,36 @@ CFLAGS += `pkg-config gdk-pixbuf-2.0 --cflags`
 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),FreeBSD)
+LDFLAGS += -liconv
+endif
+ifeq ($(targetos), MinGW)
+LDFLAGS += -liconv
+endif
 endif
-
-CFLAGS += -I../..
-LDFLAGS+=-L../../framework -lmlt
 
 SRCS := $(OBJS:.o=.c)
 
+ifeq ($(targetos), MinGW)
+OBJS += ../../win32/win32.o
+SRCS += ../../win32/win32.c
+endif
+
 all:   $(TARGET)
 
 $(TARGET): $(OBJS) $(ASM_OBJS)
@@ -53,7 +72,7 @@ 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"
 
 ifneq ($(wildcard .depend),)
 include .depend