unneeded #include
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
b55e4ef4
PG
3VPATH=$(SRC_PATH)/vhook
4
f130fd46
DB
5CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat \
6 -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
26b4bb70 7
fb3d46da 8#FIXME: This needs to be in configure/config.mak
47930f09 9ifeq ($(CONFIG_DARWIN),yes)
f130fd46
DB
10 SHFLAGS = -dynamiclib -Wl,-single_module -flat_namespace \
11 -undefined suppress -Wl,-install_name,$(libdir)/vhook/$@
47930f09 12endif
4e159595 13HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
26b4bb70
PG
14
15ifeq ($(HAVE_IMLIB2),yes)
4e159595 16 HOOKS += imlib2$(SLIBSUF)
a11d5f50 17 LDFLAGS += -lImlib2
115329f1 18endif
26b4bb70 19
b90a6beb 20ifeq ($(HAVE_FREETYPE2),yes)
4e159595 21 HOOKS += drawtext$(SLIBSUF)
b90a6beb 22 CFLAGS += `freetype-config --cflags`
a11d5f50 23 LDFLAGS += `freetype-config --libs`
115329f1 24endif
b90a6beb 25
115329f1 26all: $(HOOKS)
26b4bb70 27
4e159595 28SRCS := $(HOOKS:$(SLIBSUF)=.c)
7c235fe2 29
91d742b7 30depend: $(SRCS)
7c235fe2 31 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 32
a11a334d 33install: $(HOOKS)
cc973ecb
LB
34 install -d "$(libdir)/vhook"
35 install -m 755 $(HOOKS) "$(libdir)/vhook"
26b4bb70 36
f9edb717
DB
37ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
38uninstall:
39 rm -f $(addprefix $(libdir)/vhook/,$(ALLHOOKS))
40 -rmdir "$(libdir)/vhook/"
41
4e159595 42%$(SLIBSUF): %.o
56b04ceb 43 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
26b4bb70 44
26b4bb70 45clean:
98013cc1
DB
46 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
47
48distclean: clean
04c07634 49 rm -f .depend
7c235fe2
FB
50
51ifneq ($(wildcard .depend),)
52include .depend
53endif