lavfi: Drop deprecated way of passing options for a few filters
[ffmpeg.git] / avtools / Makefile
1 AVPROGS-$(CONFIG_AVCONV)   += avconv
2 AVPROGS-$(CONFIG_AVPLAY)   += avplay
3 AVPROGS-$(CONFIG_AVPROBE)  += avprobe
4
5 AVPROGS    := $(AVPROGS-yes:%=%$(EXESUF))
6 PROGS      += $(AVPROGS)
7
8 AVBASENAMES = avconv avplay avprobe
9 ALLAVPROGS  = $(AVBASENAMES:%=%$(EXESUF))
10
11 OBJS-avconv                   += avtools/avconv_opt.o avtools/avconv_filter.o \
12                                  avtools/avconv_hw.o
13 OBJS-avconv-$(CONFIG_LIBMFX)  += avtools/avconv_qsv.o
14 OBJS-avconv-$(CONFIG_VDA)     += avtools/avconv_vda.o
15 OBJS-avconv-$(HAVE_DXVA2_LIB) += avtools/avconv_dxva2.o
16
17 define DOAVTOOL
18 OBJS-$(1) += avtools/cmdutils.o avtools/$(1).o $(OBJS-$(1)-yes)
19 $(1)$(EXESUF): $$(OBJS-$(1))
20 $$(OBJS-$(1)): | avtools
21 $$(OBJS-$(1)): CFLAGS  += $(CFLAGS-$(1))
22 $(1)$(EXESUF): LDFLAGS += $(LDFLAGS-$(1))
23 $(1)$(EXESUF): FF_EXTRALIBS += $(EXTRALIBS-$(1))
24 -include $$(OBJS-$(1):.o=.d)
25 endef
26
27 $(foreach P,$(AVPROGS-yes),$(eval $(call DOAVTOOL,$(P))))
28
29 all: $(AVPROGS)
30
31 avtools/cmdutils.o: avversion.h | avtools
32 OBJDIRS += avtools
33
34 ifdef AVPROGS
35 install: install-progs install-data
36 endif
37
38 install-progs-yes:
39 install-progs-$(CONFIG_SHARED): install-libs
40
41 install-progs: install-progs-yes $(AVPROGS)
42         $(Q)mkdir -p "$(BINDIR)"
43         $(INSTALL) -c -m 755 $(AVPROGS) "$(BINDIR)"
44
45 uninstall: uninstall-progs
46
47 uninstall-progs:
48         $(RM) $(addprefix "$(BINDIR)/", $(ALLAVPROGS))
49
50 clean::
51         $(RM) $(ALLAVPROGS) $(CLEANSUFFIXES:%=avtools/%)