Statistics
| Branch: | Revision:

ffmpeg / vhook / Makefile @ 5509bffa

History | View | Annotate | Download (1.11 KB)

1 26b4bb70 Philip Gladstone
include ../config.mak
2
3 b55e4ef4 Philip Gladstone
VPATH=$(SRC_PATH)/vhook
4
5 c11c2bc2 Alexander Strasser
CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
6 26b4bb70 Philip Gladstone
7 fb3d46da Diego Biurrun
#FIXME: This needs to be in configure/config.mak
8 47930f09 Philip Gladstone
ifeq ($(CONFIG_DARWIN),yes)
9 fb3d46da Diego Biurrun
	SHFLAGS = -dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(libdir)/vhook/$@
10 47930f09 Philip Gladstone
endif
11 4e159595 Diego Biurrun
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
12 26b4bb70 Philip Gladstone
13
ifeq ($(HAVE_IMLIB2),yes)
14 4e159595 Diego Biurrun
    HOOKS += imlib2$(SLIBSUF)
15 115329f1 Diego Biurrun
endif
16 26b4bb70 Philip Gladstone
17 b90a6beb Philip Gladstone
ifeq ($(HAVE_FREETYPE2),yes)
18 4e159595 Diego Biurrun
    HOOKS += drawtext$(SLIBSUF)
19 b90a6beb Philip Gladstone
    CFLAGS += `freetype-config --cflags`
20 115329f1 Diego Biurrun
endif
21 b90a6beb Philip Gladstone
22 115329f1 Diego Biurrun
all: $(HOOKS)
23 26b4bb70 Philip Gladstone
24 4e159595 Diego Biurrun
SRCS := $(HOOKS:$(SLIBSUF)=.c)
25 7c235fe2 Fabrice Bellard
26 91d742b7 Fabrice Bellard
depend: $(SRCS)
27 7c235fe2 Fabrice Bellard
	$(CC) -MM $(CFLAGS) $^ 1>.depend
28 77b71ddc Philip Gladstone
29 26b4bb70 Philip Gladstone
install:
30 cc973ecb Luca Barbato
	install -d "$(libdir)/vhook"
31
	install -m 755 $(HOOKS) "$(libdir)/vhook"
32 26b4bb70 Philip Gladstone
33 4e159595 Diego Biurrun
imlib2$(SLIBSUF): imlib2.o
34 56b04ceb Niki W. Waibel
	$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< -lImlib2
35 26b4bb70 Philip Gladstone
36 4e159595 Diego Biurrun
drawtext$(SLIBSUF): drawtext.o
37 56b04ceb Niki W. Waibel
	$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
38 b90a6beb Philip Gladstone
39 4e159595 Diego Biurrun
%$(SLIBSUF): %.o
40 56b04ceb Niki W. Waibel
	$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
41 26b4bb70 Philip Gladstone
42
clean:
43 4e159595 Diego Biurrun
	rm -f *.o *.d .depend *$(SLIBSUF) *~
44 7c235fe2 Fabrice Bellard
45
ifneq ($(wildcard .depend),)
46
include .depend
47
endif