minor mods
[melted] / src / modules / core / Makefile
1 include ../../../config.mak
2
3 TARGET = ../libmltcore.so
4
5 OBJS = factory.o \
6 producer_colour.o \
7 producer_noise.o \
8 producer_ppm.o \
9 filter_brightness.o \
10 filter_channelcopy.o \
11 filter_gamma.o \
12 filter_greyscale.o \
13 filter_luma.o \
14 filter_mirror.o \
15 filter_obscure.o \
16 filter_region.o \
17 filter_resize.o \
18 filter_volume.o \
19 filter_watermark.o \
20 transition_composite.o \
21 transition_luma.o \
22 transition_mix.o \
23 transition_region.o
24
25 ASM_OBJS = composite_line_yuv_mmx.o
26
27 CFLAGS = -O4 -pipe -ffast-math -fomit-frame-pointer -DUSE_MMX -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
28
29 SRCS := $(OBJS:.o=.c)
30
31 all: $(TARGET)
32
33 $(TARGET): $(OBJS) $(ASM_OBJS)
34 $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(LDFLAGS)
35
36 composite_line_yuv_mmx.o: composite_line_yuv_mmx.S
37 $(CC) -o $@ -c composite_line_yuv_mmx.S
38
39 depend: $(SRCS)
40 $(CC) -MM $(CFLAGS) $^ 1>.depend
41
42 dist-clean: clean
43 rm -f .depend
44
45 clean:
46 rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
47
48 install: all
49 install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
50
51 ifneq ($(wildcard .depend),)
52 include .depend
53 endif