Remove bogus commented out include line.
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
041514a4
DB
3VPATH=$(SRC_PATH)/vhook
4
7981555d
DB
5CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
6 -I$(SRC_PATH)/libavformat $(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)
3c573748 14 LIBS_imlib2$(SLIBSUF) = -lImlib2
115329f1 15endif
26b4bb70 16
b90a6beb 17ifeq ($(HAVE_FREETYPE2),yes)
4e159595 18 HOOKS += drawtext$(SLIBSUF)
b90a6beb 19 CFLAGS += `freetype-config --cflags`
3c573748 20 LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
115329f1 21endif
b90a6beb 22
4e159595 23SRCS := $(HOOKS:$(SLIBSUF)=.c)
7c235fe2 24
302cdccf
DB
25all: $(HOOKS)
26
220d2d82 27depend dep: $(SRCS)
7c235fe2 28 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 29
a11a334d 30install: $(HOOKS)
84c22efd
DB
31 install -d "$(shlibdir)/vhook"
32 install -m 755 $(HOOKS) "$(shlibdir)/vhook"
26b4bb70 33
f9edb717 34uninstall:
84c22efd
DB
35 rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
36 -rmdir "$(shlibdir)/vhook/"
f9edb717 37
4e159595 38%$(SLIBSUF): %.o
fbb9d104 39 $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
26b4bb70 40
26b4bb70 41clean:
98013cc1
DB
42 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
43
44distclean: clean
04c07634 45 rm -f .depend
7c235fe2 46
3263626f
DB
47.PHONY: all depend dep clean distclean install* uninstall*
48
7c235fe2
FB
49ifneq ($(wildcard .depend),)
50include .depend
51endif