avformat/vqf: fix memory leak in add_metadata()
[ffmpeg.git] / fftools / Makefile
blob449979981854c9275fbc2ecd356a4c36866de2db
1 AVPROGS-$(CONFIG_FFMPEG) += ffmpeg
2 AVPROGS-$(CONFIG_FFPLAY) += ffplay
3 AVPROGS-$(CONFIG_FFPROBE) += ffprobe
5 AVPROGS := $(AVPROGS-yes:%=%$(PROGSSUF)$(EXESUF))
6 PROGS += $(AVPROGS)
8 AVBASENAMES = ffmpeg ffplay ffprobe
9 ALLAVPROGS = $(AVBASENAMES:%=%$(PROGSSUF)$(EXESUF))
10 ALLAVPROGS_G = $(AVBASENAMES:%=%$(PROGSSUF)_g$(EXESUF))
12 OBJS-ffmpeg += \
13 fftools/ffmpeg_dec.o \
14 fftools/ffmpeg_demux.o \
15 fftools/ffmpeg_enc.o \
16 fftools/ffmpeg_filter.o \
17 fftools/ffmpeg_hw.o \
18 fftools/ffmpeg_mux.o \
19 fftools/ffmpeg_mux_init.o \
20 fftools/ffmpeg_opt.o \
21 fftools/ffmpeg_sched.o \
22 fftools/sync_queue.o \
23 fftools/thread_queue.o \
25 OBJS-ffplay += fftools/ffplay_renderer.o
27 define DOFFTOOL
28 OBJS-$(1) += fftools/cmdutils.o fftools/opt_common.o fftools/$(1).o $(OBJS-$(1)-yes)
29 ifdef HAVE_GNU_WINDRES
30 OBJS-$(1) += fftools/fftoolsres.o
31 endif
32 $(1)$(PROGSSUF)_g$(EXESUF): $$(OBJS-$(1))
33 $$(OBJS-$(1)): | fftools
34 $$(OBJS-$(1)): CFLAGS += $(CFLAGS-$(1))
35 $(1)$(PROGSSUF)_g$(EXESUF): LDFLAGS += $(LDFLAGS-$(1))
36 $(1)$(PROGSSUF)_g$(EXESUF): FF_EXTRALIBS += $(EXTRALIBS-$(1))
37 -include $$(OBJS-$(1):.o=.d)
38 endef
40 $(foreach P,$(AVPROGS-yes),$(eval $(call DOFFTOOL,$(P))))
42 all: $(AVPROGS)
44 fftools/ffprobe.o fftools/cmdutils.o: libavutil/ffversion.h | fftools
45 OUTDIRS += fftools
47 ifdef AVPROGS
48 install: install-progs install-data
49 endif
51 install-progs-yes:
52 install-progs-$(CONFIG_SHARED): install-libs
54 install-progs: install-progs-yes $(AVPROGS)
55 $(Q)mkdir -p "$(BINDIR)"
56 $(INSTALL) -c -m 755 $(AVPROGS) "$(BINDIR)"
58 uninstall: uninstall-progs
60 uninstall-progs:
61 $(RM) $(addprefix "$(BINDIR)/", $(ALLAVPROGS))
63 clean::
64 $(RM) $(ALLAVPROGS) $(ALLAVPROGS_G) $(CLEANSUFFIXES:%=fftools/%)