mmx version of non-nearest, 2x2 rescaling
[melted] / src / modules / gtk2 / Makefile
1
2 TARGET = ../libmltgtk2.so
3
4 OBJS = factory.o \
5 producer_pixbuf.o \
6 producer_pango.o \
7 pixops.o \
8 filter_rescale.o
9
10 ASM_OBJS = have_mmx.o \
11 scale_line_22_yuv_mmx.o
12
13 CFLAGS = -O3 -DUSE_MMX `pkg-config gdk-pixbuf-2.0 --cflags` `pkg-config pangoft2 --cflags` -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
14
15 LDFLAGS = `pkg-config gdk-pixbuf-2.0 --libs` `pkg-config pangoft2 --libs`
16
17 SRCS := $(OBJS:.o=.c)
18
19 all: $(TARGET)
20
21 $(TARGET): $(OBJS) $(ASM_OBJS)
22 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
23
24 have_mmx.o:
25 $(CC) -o $@ -c have_mmx.S
26
27 scale_line_22_yuv_mmx.o: scale_line_22_yuv_mmx.S
28 $(CC) -o $@ -c scale_line_22_yuv_mmx.S
29
30 depend: $(SRCS)
31 $(CC) -MM $(CFLAGS) $^ 1>.depend
32
33 dist-clean: clean
34 rm -f .depend
35
36 clean:
37 rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
38
39 ifneq ($(wildcard .depend),)
40 include .depend
41 endif