Print static vhook warning for Cygwin and MinGW
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
997baf01 3VPATH=$(SRC_PATH_BARE)/vhook
041514a4 4
cbeee4d8 5CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
a163ed1a 6 -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
ca373eb7 7LDFLAGS+= -g
26b4bb70 8
4e159595 9HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
302cdccf 10ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
26b4bb70
PG
11
12ifeq ($(HAVE_IMLIB2),yes)
4e159595 13 HOOKS += imlib2$(SLIBSUF)
1b45e304
VP
14 CFLAGS += `imlib2-config --cflags`
15 LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
115329f1 16endif
26b4bb70 17
b90a6beb 18ifeq ($(HAVE_FREETYPE2),yes)
4e159595 19 HOOKS += drawtext$(SLIBSUF)
b90a6beb 20 CFLAGS += `freetype-config --cflags`
3c573748 21 LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
115329f1 22endif
b90a6beb 23
4e159595 24SRCS := $(HOOKS:$(SLIBSUF)=.c)
7c235fe2 25
302cdccf
DB
26all: $(HOOKS)
27
220d2d82 28depend dep: $(SRCS)
7c235fe2 29 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 30
a11a334d 31install: $(HOOKS)
84c22efd
DB
32 install -d "$(shlibdir)/vhook"
33 install -m 755 $(HOOKS) "$(shlibdir)/vhook"
26b4bb70 34
f9edb717 35uninstall:
84c22efd
DB
36 rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
37 -rmdir "$(shlibdir)/vhook/"
f9edb717 38
4e159595 39%$(SLIBSUF): %.o
fbb9d104 40 $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
26b4bb70 41
26b4bb70 42clean:
b8d40825 43 rm -f *.o *~ *.a *.lib *.so *.dylib *.dll
98013cc1
DB
44
45distclean: clean
04c07634 46 rm -f .depend
7c235fe2 47
3263626f
DB
48.PHONY: all depend dep clean distclean install* uninstall*
49
78645c98 50-include .depend