aboutsummaryrefslogtreecommitdiffstats
path: root/subdir.mak
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-04-01 00:53:31 +0000
committerMåns Rullgård <mans@mansr.com>2009-04-01 00:53:31 +0000
commitbbba084b4fcc36c0625368afe6e7586e4991de46 (patch)
treeddbc38a2055245a9331fd4514772898858ef1d75 /subdir.mak
parent92c093c1b5bf5593e5bb987499c5947834cd3ddc (diff)
downloadffmpeg-bbba084b4fcc36c0625368afe6e7586e4991de46.tar.gz
Make examples and test progs depend on libraries
Originally committed as revision 18297 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'subdir.mak')
-rw-r--r--subdir.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/subdir.mak b/subdir.mak
index 03c852a09e..7343f548e0 100644
--- a/subdir.mak
+++ b/subdir.mak
@@ -18,6 +18,8 @@ endif
INCINSTDIR := $(INCDIR)/lib$(NAME)
+THIS_LIB := $(SUBDIR)$($(BUILD_SHARED:yes=S)LIBNAME)
+
define RULES
$(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
$(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS)
@@ -96,5 +98,7 @@ endef
$(eval $(RULES))
+$(EXAMPLES) $(TESTPROGS): $(THIS_LIB) $(DEP_LIBS)
+
examples: $(EXAMPLES)
testprogs: $(TESTPROGS)