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
release/0.6
Diego Biurrun 16 years ago
parent 7c17abaf9d
commit 43a0cb7ca2
  1. 2
      common.mak
  2. 2
      libavcodec/Makefile
  3. 2
      libavformat/Makefile

@ -65,7 +65,7 @@ TESTPROGS += $(TESTPROGS-yes)
FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS) FFEXTRALIBS := $(addprefix -l,$(addsuffix $(BUILDSUF),$(FFLIBS))) $(EXTRALIBS)
FFLDFLAGS := $(addprefix -L$(BUILD_ROOT)/lib,$(FFLIBS)) $(LDFLAGS) FFLDFLAGS := $(addprefix -L$(BUILD_ROOT)/lib,$(FFLIBS)) $(LDFLAGS)
EXAMPLES := $(addprefix $(SUBDIR),$(EXAMPLES)) EXAMPLES := $(addprefix $(SUBDIR),$(addsuffix -example$(EXESUF),$(EXAMPLES)))
OBJS := $(addprefix $(SUBDIR),$(OBJS)) OBJS := $(addprefix $(SUBDIR),$(OBJS))
TESTPROGS := $(addprefix $(SUBDIR),$(addsuffix -test$(EXESUF),$(TESTPROGS))) TESTPROGS := $(addprefix $(SUBDIR),$(addsuffix -test$(EXESUF),$(TESTPROGS)))

@ -531,7 +531,7 @@ OBJS-$(HAVE_VIS) += sparc/dsputil_vis.o \
sparc/simple_idct_vis.o \ sparc/simple_idct_vis.o \
EXAMPLES = api-example$(EXESUF) EXAMPLES = api
TESTPROGS = cabac dct eval fft h264 rangecoder snow TESTPROGS = cabac dct eval fft h264 rangecoder snow
TESTPROGS-$(ARCH_X86) += x86/cpuid TESTPROGS-$(ARCH_X86) += x86/cpuid

@ -243,7 +243,7 @@ OBJS-$(CONFIG_RTP_PROTOCOL) += rtpproto.o
OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o
OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o
EXAMPLES = output-example EXAMPLES = output
TESTPROGS = timefilter TESTPROGS = timefilter
include $(SUBDIR)../subdir.mak include $(SUBDIR)../subdir.mak

Loading…
Cancel
Save