]> git.sesse.net Git - mlt/blob - src/modules/gtk2/Makefile
conditional mmx compilation
[mlt] / src / modules / gtk2 / Makefile
1 include ../../../config.mak
2
3 TARGET = ../libmltgtk2.so
4
5 OBJS = factory.o \
6            consumer_gtk2.o \
7            producer_pixbuf.o \
8            producer_pango.o \
9            pixops.o \
10            filter_rescale.o
11
12 ifeq ($(MMX_FLAGS),-DUSE_MMX)
13 ASM_OBJS = have_mmx.o \
14                    scale_line_22_yuv_mmx.o
15 endif
16
17 CFLAGS += `pkg-config gtk+-2.0 --cflags` `pkg-config gdk-pixbuf-2.0 --cflags` `pkg-config pangoft2 --cflags` -I../..
18
19 LDFLAGS += `pkg-config gtk+-2.0 --libs` `pkg-config gdk-pixbuf-2.0 --libs` `pkg-config pangoft2 --libs`
20
21 LDFLAGS+=-L../../framework -lmlt
22
23 SRCS := $(OBJS:.o=.c)
24
25 all:    $(TARGET)
26
27 $(TARGET): $(OBJS) $(ASM_OBJS)
28                 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
29
30 have_mmx.o:
31         $(CC) -o $@ -c have_mmx.S
32
33 scale_line_22_yuv_mmx.o: scale_line_22_yuv_mmx.S
34         $(CC) -o $@ -c scale_line_22_yuv_mmx.S
35
36 depend: $(SRCS)
37                 $(CC) -MM $(CFLAGS) $^ 1>.depend
38
39 dist-clean:     clean
40                 rm -f .depend
41
42 clean:  
43                 rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
44
45 install: all
46         install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
47
48 ifneq ($(wildcard .depend),)
49 include .depend
50 endif