]> git.sesse.net Git - mlt/blob - src/modules/gtk2/Makefile
Link pango producer with libiconv on Mac OS X.
[mlt] / src / modules / gtk2 / Makefile
1 CFLAGS += -I../..
2
3 LDFLAGS += -L../../framework -lmlt -lpthread -lm
4
5 include ../../../config.mak
6 include config.mak
7
8 TARGET = ../libmltgtk2$(LIBSUF)
9
10 OBJS = factory.o
11
12 ifdef USE_GTK2
13 OBJS += consumer_gtk2.o
14 CFLAGS += `pkg-config gtk+-2.0 --cflags`
15 LDFLAGS += `pkg-config gtk+-2.0 --libs`
16 endif
17
18 ifdef USE_PIXBUF
19 OBJS += producer_pixbuf.o pixops.o filter_rescale.o
20 CFLAGS += `pkg-config gdk-pixbuf-2.0 --cflags`
21 LDFLAGS += `pkg-config gdk-pixbuf-2.0 --libs`
22 endif
23
24 ifdef USE_EXIF
25 CFLAGS += $(EXIFCXXFLAGS) 
26 LDFLAGS += $(EXIFLIBS)
27 endif
28
29 ifdef MMX_FLAGS
30 ifndef ARCH_X86_64
31 ASM_OBJS = have_mmx.o scale_line_22_yuv_mmx.o
32 endif
33 endif
34
35 ifdef USE_PANGO
36 OBJS += producer_pango.o
37 CFLAGS += `pkg-config pangoft2 --cflags`
38 LDFLAGS += `pkg-config pangoft2 --libs`
39 ifeq ($(targetos),Darwin)
40 LDFLAGS += -liconv
41 endif
42 ifeq ($(targetos),FreeBSD)
43 LDFLAGS += -liconv
44 endif
45 ifeq ($(targetos), MinGW)
46 LDFLAGS += -liconv
47 endif
48 endif
49
50 SRCS := $(OBJS:.o=.c)
51
52 ifeq ($(targetos), MinGW)
53 OBJS += ../../win32/win32.o
54 SRCS += ../../win32/win32.c
55 endif
56
57 all:    $(TARGET)
58
59 $(TARGET): $(OBJS) $(ASM_OBJS)
60                 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
61
62 have_mmx.o:
63         $(CC) -o $@ -c have_mmx.S
64
65 scale_line_22_yuv_mmx.o: scale_line_22_yuv_mmx.S
66         $(CC) -o $@ -c scale_line_22_yuv_mmx.S
67
68 depend: $(SRCS)
69                 $(CC) -MM $(CFLAGS) $^ 1>.depend
70
71 distclean:      clean
72                 rm -f .depend
73
74 clean:  
75                 rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
76
77 install: all
78         install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
79
80 ifneq ($(wildcard .depend),)
81 include .depend
82 endif