Statistics
| Branch: | Revision:

ffmpeg / vhook / Makefile @ 3a74415d

History | View | Annotate | Download (1.2 KB)

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