Simplify vhook build.

Originally committed as revision 5397 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun 2006-05-18 09:02:05 +00:00
parent fcdff8996f
commit a11d5f50ac

View File

@ -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) $<