2 LDFLAGS += -L../../framework -lmlt -lpthread
4 include ../../../config.mak
7 LDFLAGS += -lavformat$(AVFORMAT_SUFFIX)
8 LDFLAGS += -lavcodec$(AVFORMAT_SUFFIX)
9 LDFLAGS += -lavutil$(AVFORMAT_SUFFIX)
10 LDFLAGS += $(EXTRA_LIBS)
13 TARGET = ../libmltffmpeg$(LIBSUF)
15 TARGET = ../libmltavformat$(LIBSUF)
21 OBJS += filter_avcolour_space.o \
23 filter_avdeinterlace.o
25 OBJS += filter_swscale.o
31 CFLAGS += -DVDPAU `pkg-config --cflags x11`
32 LDFLAGS += $(LIBDL) `pkg-config --libs x11`
36 OBJS += producer_avformat.o \
43 LDFLAGS += -lswscale$(AVFORMAT_SUFFIX)
48 LDFLAGS += -lavdevice$(AVFORMAT_SUFFIX)
56 $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
59 $(CC) -MM $(CFLAGS) $^ 1>.depend
65 rm -f $(OBJS) ../libmltffmpeg$(LIBSUF) ../libmltavformat$(LIBSUF)
68 install -m 755 $(TARGET) "$(DESTDIR)$(moduledir)"
69 install -d "$(DESTDIR)$(mltdatadir)/avformat"
70 install -m 644 producer_avformat.yml "$(DESTDIR)$(mltdatadir)/avformat"
71 install -m 644 consumer_avformat.yml "$(DESTDIR)$(mltdatadir)/avformat"
74 rm "$(DESTDIR)$(moduledir)/libmltavformat$(LIBSUF)" 2> /dev/null || true
75 rm "$(DESTDIR)$(moduledir)/libmltffmpeg$(LIBSUF)" 2> /dev/null || true
76 rm -rf "$(DESTDIR)$(mltdatadir)/avformat"
78 ifneq ($(wildcard .depend),)