Remove unnecessary include and variable declaration.
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
408382a4 3CFLAGS=$(VHOOKCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat \
f130fd46 4 -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
26b4bb70 5
4e159595 6HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
302cdccf 7ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
26b4bb70
PG
8
9ifeq ($(HAVE_IMLIB2),yes)
4e159595 10 HOOKS += imlib2$(SLIBSUF)
a11d5f50 11 LDFLAGS += -lImlib2
115329f1 12endif
26b4bb70 13
b90a6beb 14ifeq ($(HAVE_FREETYPE2),yes)
4e159595 15 HOOKS += drawtext$(SLIBSUF)
b90a6beb 16 CFLAGS += `freetype-config --cflags`
a11d5f50 17 LDFLAGS += `freetype-config --libs`
115329f1 18endif
b90a6beb 19
4e159595 20SRCS := $(HOOKS:$(SLIBSUF)=.c)
7c235fe2 21
302cdccf
DB
22all: $(HOOKS)
23
91d742b7 24depend: $(SRCS)
7c235fe2 25 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 26
a11a334d 27install: $(HOOKS)
84c22efd
DB
28 install -d "$(shlibdir)/vhook"
29 install -m 755 $(HOOKS) "$(shlibdir)/vhook"
26b4bb70 30
f9edb717 31uninstall:
84c22efd
DB
32 rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
33 -rmdir "$(shlibdir)/vhook/"
f9edb717 34
4e159595 35%$(SLIBSUF): %.o
408382a4 36 $(CC) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $<
26b4bb70 37
26b4bb70 38clean:
98013cc1
DB
39 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
40
41distclean: clean
04c07634 42 rm -f .depend
7c235fe2
FB
43
44ifneq ($(wildcard .depend),)
45include .depend
46endif