dependency handling is consistant with libavcodec
[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 17
7c235fe2
FB
18SRCS := $(OBJS:.o=.c)
19
20.depend: $(SRCS)
21 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 22
26b4bb70
PG
23install:
24 install -s -m 755 $(HOOKS) $(INSTDIR)
25
26imlib2.so: imlib2.o
b55e4ef4 27 $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
26b4bb70
PG
28
29%.so: %.o
b55e4ef4 30 $(CC) -g -o $@ $(SHFLAGS) $<
26b4bb70
PG
31
32%.html: %.texi
33 texi2html -monolithic -number $<
34
35clean:
77b71ddc 36 rm -f *.o *.d *.so *~
7c235fe2
FB
37
38ifneq ($(wildcard .depend),)
39include .depend
40endif