padding bug autodetection improvement 2nd try
[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
9d6f1d52 16all: $(HOOKS)
26b4bb70
PG
17
18install:
19 install -s -m 755 $(HOOKS) $(INSTDIR)
20
21imlib2.so: imlib2.o
b55e4ef4 22 $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
26b4bb70
PG
23 rm $<
24
25%.so: %.o
b55e4ef4 26 $(CC) -g -o $@ $(SHFLAGS) $<
26b4bb70
PG
27
28%.html: %.texi
29 texi2html -monolithic -number $<
30
31clean:
32 rm -f *.o *.so *~