3 VPATH=$(SRC_PATH)/vhook
5 CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
6 -I$(SRC_PATH)/libavformat $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
8 HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
9 ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
11 ifeq ($(HAVE_IMLIB2),yes)
12 HOOKS += imlib2$(SLIBSUF)
13 LDFLAGS_imlib2$(SLIBSUF) = -lImlib2
16 ifeq ($(HAVE_FREETYPE2),yes)
17 HOOKS += drawtext$(SLIBSUF)
18 CFLAGS += `freetype-config --cflags`
19 LDFLAGS_drawtext$(SLIBSUF) = `freetype-config --libs`
22 SRCS := $(HOOKS:$(SLIBSUF)=.c)
27 $(CC) -MM $(CFLAGS) $^ 1>.depend
30 install -d "$(shlibdir)/vhook"
31 install -m 755 $(HOOKS) "$(shlibdir)/vhook"
34 rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
35 -rmdir "$(shlibdir)/vhook/"
38 $(CC) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $< $(LDFLAGS_$@)
41 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
46 ifneq ($(wildcard .depend),)