CABAC assembler optimizations ported to AMD64
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
041514a4
DB
3VPATH=$(SRC_PATH)/vhook
4
cbeee4d8 5CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
7981555d 6 -I$(SRC_PATH)/libavformat $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
ca373eb7 7LDFLAGS+= -g
26b4bb70 8
89ae0e62
DB
9ifeq ($(CONFIG_SWSCALER),yes)
10CFLAGS := -I$(SRC_PATH)/libswscale $(CFLAGS)
11endif
12
4e159595 13HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
302cdccf 14ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
26b4bb70
PG
15
16ifeq ($(HAVE_IMLIB2),yes)
4e159595 17 HOOKS += imlib2$(SLIBSUF)
3c573748 18 LIBS_imlib2$(SLIBSUF) = -lImlib2
115329f1 19endif
26b4bb70 20
b90a6beb 21ifeq ($(HAVE_FREETYPE2),yes)
4e159595 22 HOOKS += drawtext$(SLIBSUF)
b90a6beb 23 CFLAGS += `freetype-config --cflags`
3c573748 24 LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
115329f1 25endif
b90a6beb 26
4e159595 27SRCS := $(HOOKS:$(SLIBSUF)=.c)
7c235fe2 28
302cdccf
DB
29all: $(HOOKS)
30
220d2d82 31depend dep: $(SRCS)
7c235fe2 32 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 33
a11a334d 34install: $(HOOKS)
84c22efd
DB
35 install -d "$(shlibdir)/vhook"
36 install -m 755 $(HOOKS) "$(shlibdir)/vhook"
26b4bb70 37
f9edb717 38uninstall:
84c22efd
DB
39 rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
40 -rmdir "$(shlibdir)/vhook/"
f9edb717 41
4e159595 42%$(SLIBSUF): %.o
fbb9d104 43 $(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
26b4bb70 44
26b4bb70 45clean:
98013cc1
DB
46 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
47
48distclean: clean
04c07634 49 rm -f .depend
7c235fe2 50
3263626f
DB
51.PHONY: all depend dep clean distclean install* uninstall*
52
7c235fe2
FB
53ifneq ($(wildcard .depend),)
54include .depend
55endif