Revision dd9f3d97 Makefile

View differences:

Makefile
34 34
all: videohook
35 35
install: install-vhook
36 36
endif
37

  
37 38
VHOOKCFLAGS += $(filter-out -mdynamic-no-pic,$(CFLAGS))
38
HOOKS    = vhook/fish$(SLIBSUF) vhook/null$(SLIBSUF) vhook/watermark$(SLIBSUF)
39
ALLHOOKS = $(HOOKS) vhook/drawtext$(SLIBSUF) vhook/imlib2$(SLIBSUF) vhook/ppm$(SLIBSUF)
40
ALLHOOKS_SRCS := $(ALLHOOKS:$(SLIBSUF)=.c)
41
ifeq ($(HAVE_FORK),yes)
42
HOOKS  += vhook/ppm(SLIBSUF)
43
endif
44
ifeq ($(HAVE_IMLIB2),yes)
45
HOOKS  += vhook/imlib2$(SLIBSUF)
46
VHOOKCFLAGS += `imlib2-config --cflags`
39

  
40
BASEHOOKS = fish null watermark
41
ALLHOOKS = $(BASEHOOKS) drawtext imlib2 ppm
42
ALLHOOKS_SRCS = $(addprefix vhook/, $(addsuffix .c, $(ALLHOOKS)))
43

  
44
HOOKS-$(HAVE_FORK)      += ppm
45
HOOKS-$(HAVE_IMLIB2)    += imlib2
46
HOOKS-$(HAVE_FREETYPE2) += drawtext
47

  
48
HOOKS = $(addprefix vhook/, $(addsuffix $(SLIBSUF), $(BASEHOOKS) $(HOOKS-yes)))
49

  
50
VHOOKCFLAGS-$(HAVE_IMLIB2) += `imlib2-config --cflags`
47 51
LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
48
endif
49
ifeq ($(HAVE_FREETYPE2),yes)
50
HOOKS  += vhook/drawtext$(SLIBSUF)
51
VHOOKCFLAGS += `freetype-config --cflags`
52

  
53
VHOOKCFLAGS-$(HAVE_FREETYPE2) += `freetype-config --cflags`
52 54
LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
53
endif
55

  
56
VHOOKCFLAGS += $(VHOOKCFLAGS-yes)
54 57

  
55 58
ifeq ($(BUILD_DOC),yes)
56 59
all: documentation

Also available in: Unified diff