]> git.sesse.net Git - mlt/blob - src/modules/gtk2/Makefile
Minor optimisations, consumer avformat experimentation
[mlt] / src / modules / gtk2 / Makefile
1 include ../../../config.mak
2
3 TARGET = ../libmltgtk2.so
4
5 OBJS = factory.o \
6            producer_pixbuf.o \
7            producer_pango.o \
8            pixops.o \
9            filter_rescale.o
10
11 ASM_OBJS = have_mmx.o \
12                    scale_line_22_yuv_mmx.o
13
14 CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -DUSE_MMX `pkg-config gdk-pixbuf-2.0 --cflags` `pkg-config pangoft2 --cflags` -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
15
16 LDFLAGS = `pkg-config gdk-pixbuf-2.0 --libs` `pkg-config pangoft2 --libs`
17
18 SRCS := $(OBJS:.o=.c)
19
20 all:    $(TARGET)
21
22 $(TARGET): $(OBJS) $(ASM_OBJS)
23                 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
24
25 have_mmx.o:
26         $(CC) -o $@ -c have_mmx.S
27
28 scale_line_22_yuv_mmx.o: scale_line_22_yuv_mmx.S
29         $(CC) -o $@ -c scale_line_22_yuv_mmx.S
30
31 depend: $(SRCS)
32                 $(CC) -MM $(CFLAGS) $^ 1>.depend
33
34 dist-clean:     clean
35                 rm -f .depend
36
37 clean:  
38                 rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
39
40 install: all
41         install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
42
43 ifneq ($(wildcard .depend),)
44 include .depend
45 endif