src/framework/mlt_consumer.c src/framework/mlt_consumer.h
[melted] / src / modules / kino / Makefile
1 include ../../../config.mak
2 include config.mak
3
4 TARGET=../libmltkino.so
5
6 OBJS=factory.o producer_kino.o
7 CPPOBJS=kino_wrapper.o avi.o error.o filehandler.o riff.o
8 CFLAGS+=-I../../
9 LDFLAGS+=-L../../framework -lmlt -lstdc++
10 CXXFLAGS+=$(CFLAGS) -Wno-deprecated
11
12 ifdef HAVE_LIBQUICKTIME
13 CXXFLAGS+=`lqt-config --cflags`
14 LDFLAGS+=`lqt-config --libs`
15 endif
16
17 ifdef HAVE_LIBDV
18 CFLAGS += `pkg-config --cflags libdv`
19 LDFLAGS += `pkg-config --libs libdv`
20 endif
21
22
23 SRCS := $(OBJS:.o=.c) $(CPPOBJS:.o=.cc)
24
25 all: $(TARGET)
26
27 $(TARGET): $(OBJS) $(CPPOBJS)
28 $(CC) -shared -o $@ $(OBJS) $(CPPOBJS) $(LDFLAGS)
29
30 depend: $(SRCS)
31 $(CC) -MM $(CFLAGS) $^ 1>.depend
32
33 dist-clean: clean
34 rm -f .depend config.h config.mak
35
36 clean:
37 rm -f $(OBJS) $(TARGET) $(CPPOBJS)
38
39 install: all
40 install -m 755 $(TARGET) "$(prefix)/share/mlt/modules"
41
42 ifneq ($(wildcard .depend),)
43 include .depend
44 endif