ade450ad39ae98ee259ef3dbbb813f12c1cc6d95
[melted] / src / modules / avformat / Makefile
1 include ../../../config.mak
2 include config.mak
3
4 TARGET = ../libmltavformat.so
5
6 OBJS = factory.o \
7 producer_avformat.o \
8 consumer_avformat.o \
9 filter_avdeinterlace.o \
10 filter_avresample.o
11
12 CFLAGS+=-I../..
13
14 LDFLAGS+=-lavformat -lavcodec $(EXTRA_LIBS)
15
16 SRCS := $(OBJS:.o=.c)
17
18 all: $(TARGET)
19
20 $(TARGET): $(OBJS)
21 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
22
23 depend: $(SRCS)
24 $(CC) -MM $(CFLAGS) $^ 1>.depend
25
26 dist-clean: clean
27 rm -f .depend
28
29 clean:
30 rm -f $(OBJS) $(TARGET)
31
32 install: all
33 install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
34
35 ifneq ($(wildcard .depend),)
36 include .depend
37 endif