Add checking for the existience of freetype2
[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
91d742b7 18SRCS := $(HOOKS:.so=.c)
7c235fe2 19
91d742b7 20depend: $(SRCS)
7c235fe2 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 31
26b4bb70 32clean:
4b8b2edb 33 rm -f *.o *.d .depend *.so *~
7c235fe2
FB
34
35ifneq ($(wildcard .depend),)
36include .depend
37endif