Fix some #ifdef to allow building amr_wb alone.
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
b55e4ef4
PG
3VPATH=$(SRC_PATH)/vhook
4
c11c2bc2 5CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
26b4bb70 6
47930f09 7ifeq ($(CONFIG_DARWIN),yes)
75388c74 8SHFLAGS+=-flat_namespace -undefined suppress
47930f09 9endif
21754ce6 10HOOKS=null.so fish.so ppm.so watermark.so
26b4bb70
PG
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 28install:
cc973ecb
LB
29 install -d "$(libdir)/vhook"
30 install -m 755 $(HOOKS) "$(libdir)/vhook"
26b4bb70
PG
31
32imlib2.so: imlib2.o
56b04ceb 33 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< -lImlib2
26b4bb70 34
b90a6beb 35drawtext.so: drawtext.o
56b04ceb 36 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
b90a6beb 37
26b4bb70 38%.so: %.o
56b04ceb 39 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
26b4bb70 40
26b4bb70 41clean:
4b8b2edb 42 rm -f *.o *.d .depend *.so *~
7c235fe2
FB
43
44ifneq ($(wildcard .depend),)
45include .depend
46endif