summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-07-09 20:22:16 +0000
committerMåns Rullgård <mans@mansr.com>2007-07-09 20:22:16 +0000
commitdd9f3d979170f36af2da4d0d1fed56f3ae851871 (patch)
treed119df6b7c55f05bee47a04b93f5994b06b6a6b7 /Makefile
parent9d99cc5a8a575dc50f77c0de87057a1d54751fe5 (diff)
downloadffmpeg-dd9f3d979170f36af2da4d0d1fed56f3ae851871.tar.gz
clean up vhook variables
Originally committed as revision 9564 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 17 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index a020ec6345..e58768b5ee 100644
--- a/Makefile
+++ b/Makefile
@@ -34,23 +34,26 @@ ifeq ($(CONFIG_VHOOK),yes)
all: videohook
install: install-vhook
endif
+
VHOOKCFLAGS += $(filter-out -mdynamic-no-pic,$(CFLAGS))
-HOOKS = vhook/fish$(SLIBSUF) vhook/null$(SLIBSUF) vhook/watermark$(SLIBSUF)
-ALLHOOKS = $(HOOKS) vhook/drawtext$(SLIBSUF) vhook/imlib2$(SLIBSUF) vhook/ppm$(SLIBSUF)
-ALLHOOKS_SRCS := $(ALLHOOKS:$(SLIBSUF)=.c)
-ifeq ($(HAVE_FORK),yes)
-HOOKS += vhook/ppm(SLIBSUF)
-endif
-ifeq ($(HAVE_IMLIB2),yes)
-HOOKS += vhook/imlib2$(SLIBSUF)
-VHOOKCFLAGS += `imlib2-config --cflags`
+
+BASEHOOKS = fish null watermark
+ALLHOOKS = $(BASEHOOKS) drawtext imlib2 ppm
+ALLHOOKS_SRCS = $(addprefix vhook/, $(addsuffix .c, $(ALLHOOKS)))
+
+HOOKS-$(HAVE_FORK) += ppm
+HOOKS-$(HAVE_IMLIB2) += imlib2
+HOOKS-$(HAVE_FREETYPE2) += drawtext
+
+HOOKS = $(addprefix vhook/, $(addsuffix $(SLIBSUF), $(BASEHOOKS) $(HOOKS-yes)))
+
+VHOOKCFLAGS-$(HAVE_IMLIB2) += `imlib2-config --cflags`
LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
-endif
-ifeq ($(HAVE_FREETYPE2),yes)
-HOOKS += vhook/drawtext$(SLIBSUF)
-VHOOKCFLAGS += `freetype-config --cflags`
+
+VHOOKCFLAGS-$(HAVE_FREETYPE2) += `freetype-config --cflags`
LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
-endif
+
+VHOOKCFLAGS += $(VHOOKCFLAGS-yes)
ifeq ($(BUILD_DOC),yes)
all: documentation