malloc padding to avoid reading past the malloc()ed area.
[libav.git] / vhook / Makefile
CommitLineData
26b4bb70
PG
1include ../config.mak
2
b55e4ef4
PG
3VPATH=$(SRC_PATH)/vhook
4
c11c2bc2 5CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
26b4bb70 6
47930f09 7ifeq ($(CONFIG_DARWIN),yes)
3702300c 8 SHFLAGS += -flat_namespace -undefined suppress
47930f09 9endif
4e159595 10HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
26b4bb70
PG
11
12ifeq ($(HAVE_IMLIB2),yes)
4e159595 13 HOOKS += imlib2$(SLIBSUF)
26b4bb70
PG
14endif
15
b90a6beb 16ifeq ($(HAVE_FREETYPE2),yes)
4e159595 17 HOOKS += drawtext$(SLIBSUF)
b90a6beb
PG
18 CFLAGS += `freetype-config --cflags`
19endif
20
9d6f1d52 21all: $(HOOKS)
26b4bb70 22
4e159595 23SRCS := $(HOOKS:$(SLIBSUF)=.c)
7c235fe2 24
91d742b7 25depend: $(SRCS)
7c235fe2 26 $(CC) -MM $(CFLAGS) $^ 1>.depend
77b71ddc 27
26b4bb70 28install:
cc973ecb
LB
29 install -d "$(libdir)/vhook"
30 install -m 755 $(HOOKS) "$(libdir)/vhook"
26b4bb70 31
4e159595 32imlib2$(SLIBSUF): imlib2.o
56b04ceb 33 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< -lImlib2
26b4bb70 34
4e159595 35drawtext$(SLIBSUF): drawtext.o
56b04ceb 36 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
b90a6beb 37
4e159595
DB
38%$(SLIBSUF): %.o
39ifeq ($(CONFIG_DARWIN),yes)
495d6cdc 40 $(CC) $(LDFLAGS) $(SHFLAGS) -Wl,-install_name,$(libdir)/vhook/$@ -g -o $@ $<
4e159595 41else
56b04ceb 42 $(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
4e159595 43endif
26b4bb70 44
26b4bb70 45clean:
4e159595 46 rm -f *.o *.d .depend *$(SLIBSUF) *~
7c235fe2
FB
47
48ifneq ($(wildcard .depend),)
49include .depend
50endif