From 43a0cb7ca290f71b55d99e0bfa5232a3f58dad24 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 29 Mar 2009 14:35:20 +0000 Subject: [PATCH] Generalize example target rule in common.mak so that it sets a -example$(EXESUF) suffix for all example files instead of doing this in individual Makefiles. Originally committed as revision 18217 to svn://svn.ffmpeg.org/ffmpeg/trunk --- common.mak | 2 +- libavcodec/Makefile | 2 +- libavformat/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common.mak b/common.mak index 83f2dbb1ca..b42b33e8f0 100644 --- a/common.mak +++ b/common.mak @@ -65,7 +65,7 @@ TESTPROGS += $(TESTPROGS-yes) FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS) FFLDFLAGS := $(addprefix -L$(BUILD_ROOT)/lib,$(FFLIBS)) $(LDFLAGS) -EXAMPLES := $(addprefix $(SUBDIR),$(EXAMPLES)) +EXAMPLES := $(addprefix $(SUBDIR),$(addsuffix -example$(EXESUF),$(EXAMPLES))) OBJS := $(addprefix $(SUBDIR),$(OBJS)) TESTPROGS := $(addprefix $(SUBDIR),$(addsuffix -test$(EXESUF),$(TESTPROGS))) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index c1926c7021..d26a5cfed8 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -531,7 +531,7 @@ OBJS-$(HAVE_VIS) += sparc/dsputil_vis.o \ sparc/simple_idct_vis.o \ -EXAMPLES = api-example$(EXESUF) +EXAMPLES = api TESTPROGS = cabac dct eval fft h264 rangecoder snow TESTPROGS-$(ARCH_X86) += x86/cpuid diff --git a/libavformat/Makefile b/libavformat/Makefile index eaec4a9351..6ade1bb1dd 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -243,7 +243,7 @@ OBJS-$(CONFIG_RTP_PROTOCOL) += rtpproto.o OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o -EXAMPLES = output-example +EXAMPLES = output TESTPROGS = timefilter include $(SUBDIR)../subdir.mak