3 VPATH=$(SRC_PATH_BARE)/vhook
5 CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
6 -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
9 HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
10 ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
12 ifeq ($(HAVE_IMLIB2),yes)
13 HOOKS += imlib2$(SLIBSUF)
14 CFLAGS += `imlib2-config --cflags`
15 LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
18 ifeq ($(HAVE_FREETYPE2),yes)
19 HOOKS += drawtext$(SLIBSUF)
20 CFLAGS += `freetype-config --cflags`
21 LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
24 SRCS := $(HOOKS:$(SLIBSUF)=.c)
29 $(CC) -MM $(CFLAGS) $^ 1>.depend
32 install -d "$(shlibdir)/vhook"
33 install -m 755 $(HOOKS) "$(shlibdir)/vhook"
36 rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
37 -rmdir "$(shlibdir)/vhook/"
40 $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
43 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
48 .PHONY: all depend dep clean distclean install* uninstall*