summaryrefslogtreecommitdiff
path: root/vhook/Makefile
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-05-18 09:02:05 +0000
committerDiego Biurrun <diego@biurrun.de>2006-05-18 09:02:05 +0000
commita11d5f50acddd149f95ebc1b8d30f8c4a7d11528 (patch)
tree1e79054b3f111d645ec88a373ab453858dffb1c7 /vhook/Makefile
parentfcdff8996fa5d5f92281fb4630aafbecb6c3ef6c (diff)
downloadffmpeg-a11d5f50acddd149f95ebc1b8d30f8c4a7d11528.tar.gz
Simplify vhook build.
Originally committed as revision 5397 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/Makefile')
-rw-r--r--vhook/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/vhook/Makefile b/vhook/Makefile
index 6a65731844..a176fd0c41 100644
--- a/vhook/Makefile
+++ b/vhook/Makefile
@@ -12,11 +12,13 @@ HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
ifeq ($(HAVE_IMLIB2),yes)
HOOKS += imlib2$(SLIBSUF)
+ LDFLAGS += -lImlib2
endif
ifeq ($(HAVE_FREETYPE2),yes)
HOOKS += drawtext$(SLIBSUF)
CFLAGS += `freetype-config --cflags`
+ LDFLAGS += `freetype-config --libs`
endif
all: $(HOOKS)
@@ -30,12 +32,6 @@ install: $(HOOKS)
install -d "$(libdir)/vhook"
install -m 755 $(HOOKS) "$(libdir)/vhook"
-imlib2$(SLIBSUF): imlib2.o
- $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< -lImlib2
-
-drawtext$(SLIBSUF): drawtext.o
- $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
-
%$(SLIBSUF): %.o
$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<