ppm vhook follow up patch by (Charles Yates <charles dot yates at pandora dot be>)
[libav.git] / vhook / Makefile
1 include ../config.mak
2
3 VPATH=$(SRC_PATH)/vhook
4
5 CFLAGS=-fPIC $(OPTFLAGS) -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
6
7 ifeq ($(CONFIG_DARWIN),yes)
8 SHFLAGS+=-bundle -flat_namespace -undefined suppress
9 endif
10 HOOKS=null.so fish.so ppm.so
11
12 ifeq ($(HAVE_IMLIB2),yes)
13 HOOKS += imlib2.so
14 endif
15
16 ifeq ($(HAVE_FREETYPE2),yes)
17 HOOKS += drawtext.so
18 CFLAGS += `freetype-config --cflags`
19 endif
20
21 all: $(HOOKS)
22
23 SRCS := $(HOOKS:.so=.c)
24
25 depend: $(SRCS)
26 $(CC) -MM $(CFLAGS) $^ 1>.depend
27
28 install:
29 install -s -m 755 $(HOOKS) $(INSTDIR)
30
31 imlib2.so: imlib2.o
32 $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
33
34 drawtext.so: drawtext.o
35 $(CC) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
36
37 %.so: %.o
38 $(CC) -g -o $@ $(SHFLAGS) $<
39
40 clean:
41 rm -f *.o *.d .depend *.so *~
42
43 ifneq ($(wildcard .depend),)
44 include .depend
45 endif