renamed libav to libavformat
[libav.git] / vhook / Makefile
1 include ../config.mak
2
3 CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I../libavformat -I../libavcodec -DHAVE_AV_CONFIG_H
4
5 ifeq ($(CONFIG_DARWIN),yes)
6 LDFLAGS+=-bundle -flat_namespace -undefined suppress
7 else
8 LDFLAGS+=-shared
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 $@ $(LDFLAGS) $< -lImlib2
23 rm $<
24
25 %.so: %.o
26 $(CC) -g -o $@ $(LDFLAGS) $<
27
28 %.html: %.texi
29 texi2html -monolithic -number $<
30
31 clean:
32 rm -f *.o *.so *~