Try to get this to build on more platforms (especially Darwin)
[libav.git] / vhook / Makefile
1 include ../config.mak
2
3 VPATH=$(SRC_PATH)/vhook
4
5 CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -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
11
12 ifeq ($(HAVE_IMLIB2),yes)
13 HOOKS += imlib2.so
14 endif
15
16 all: $(HOOKS) hooks.html
17
18 install:
19 install -s -m 755 $(HOOKS) $(INSTDIR)
20
21 imlib2.so: imlib2.o
22 $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
23 rm $<
24
25 %.so: %.o
26 $(CC) -g -o $@ $(SHFLAGS) $<
27
28 %.html: %.texi
29 texi2html -monolithic -number $<
30
31 clean:
32 rm -f *.o *.so *~