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