show stream info with -stats
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
b55e4ef4
PG
3VPATH=$(SRC_PATH)/vhook
4
a382b927 5CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
26b4bb70 6
47930f09 7ifeq ($(CONFIG_DARWIN),yes)
b55e4ef4 8SHFLAGS+=-bundle -flat_namespace -undefined suppress
47930f09 9endif
26b4bb70
PG
10HOOKS=null.so fish.so
11
12ifeq ($(HAVE_IMLIB2),yes)
13 HOOKS += imlib2.so
14endif
15
b90a6beb
PG
16ifeq ($(HAVE_FREETYPE2),yes)
17 HOOKS += drawtext.so
18 CFLAGS += `freetype-config --cflags`
19endif
20
9d6f1d52 21all: $(HOOKS)
26b4bb70 22
91d742b7 23SRCS := $(HOOKS:.so=.c)
7c235fe2 24
91d742b7 25depend: $(SRCS)
7c235fe2 26 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 27
26b4bb70
PG
28install:
29 install -s -m 755 $(HOOKS) $(INSTDIR)
30
31imlib2.so: imlib2.o
b55e4ef4 32 $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
26b4bb70 33
b90a6beb
PG
34drawtext.so: drawtext.o
35 $(CC) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
36
26b4bb70 37%.so: %.o
b55e4ef4 38 $(CC) -g -o $@ $(SHFLAGS) $<
26b4bb70 39
26b4bb70 40clean:
4b8b2edb 41 rm -f *.o *.d .depend *.so *~
7c235fe2
FB
42
43ifneq ($(wildcard .depend),)
44include .depend
45endif