From a11d5f50acddd149f95ebc1b8d30f8c4a7d11528 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 18 May 2006 09:02:05 +0000 Subject: Simplify vhook build. Originally committed as revision 5397 to svn://svn.ffmpeg.org/ffmpeg/trunk --- vhook/Makefile | 8 ++------ 1 file 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) $< -- cgit v1.2.3