]> git.sesse.net Git - mlt/blob - src/modules/core/Makefile
fd7d0dff91d3e13d6a3dfafe517083d902bf0521
[mlt] / src / modules / core / Makefile
1
2 TARGET = ../libmltcore.so
3
4 OBJS = factory.o \
5            producer_ppm.o \
6            filter_brightness.o \
7            filter_greyscale.o \
8            filter_gamma.o \
9            filter_luma.o \
10            filter_obscure.o \
11            filter_region.o \
12            filter_resize.o \
13            filter_volume.o \
14            filter_watermark.o \
15            producer_colour.o \
16            transition_composite.o \
17            transition_luma.o \
18            transition_mix.o \
19            transition_region.o 
20
21 ASM_OBJS = composite_line_yuv_mmx.o
22
23 CFLAGS = -O3 -DUSE_MMX -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
24
25 SRCS := $(OBJS:.o=.c)
26
27 all:    $(TARGET)
28
29 $(TARGET): $(OBJS) $(ASM_OBJS)
30                 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
31
32 composite_line_yuv_mmx.o: composite_line_yuv_mmx.S
33         $(CC) -o $@ -c composite_line_yuv_mmx.S
34
35 depend: $(SRCS)
36                 $(CC) -MM $(CFLAGS) $^ 1>.depend
37
38 dist-clean:     clean
39                 rm -f .depend
40
41 clean:  
42                 rm -f $(OBJS) $(ASM_OBJS) $(TARGET) 
43
44 ifneq ($(wildcard .depend),)
45 include .depend
46 endif