2002-11-21 03:50:36 +00:00
|
|
|
include ../config.mak
|
|
|
|
|
2006-11-08 00:02:15 +00:00
|
|
|
VPATH=$(SRC_PATH_BARE)/vhook
|
2006-08-17 16:28:47 +00:00
|
|
|
|
2006-10-07 09:22:44 +00:00
|
|
|
CFLAGS=-I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
|
2006-10-23 17:06:32 +00:00
|
|
|
-I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale $(VHOOKCFLAGS) -DHAVE_AV_CONFIG_H
|
2006-09-08 17:18:46 +00:00
|
|
|
LDFLAGS+= -g
|
2002-11-21 03:50:36 +00:00
|
|
|
|
2007-06-14 16:43:56 +00:00
|
|
|
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) watermark$(SLIBSUF)
|
|
|
|
ALLHOOKS=$(HOOKS) ppm$(SLIBSUF) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
|
|
|
|
|
|
|
|
ifeq ($(HAVE_FORK),yes)
|
|
|
|
HOOKS += ppm$(SLIBSUF)
|
|
|
|
endif
|
2002-11-21 03:50:36 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_IMLIB2),yes)
|
2005-09-26 10:05:13 +00:00
|
|
|
HOOKS += imlib2$(SLIBSUF)
|
2007-02-05 17:03:03 +00:00
|
|
|
CFLAGS += `imlib2-config --cflags`
|
|
|
|
LIBS_imlib2$(SLIBSUF) = `imlib2-config --libs`
|
2005-12-17 18:14:38 +00:00
|
|
|
endif
|
2002-11-21 03:50:36 +00:00
|
|
|
|
2003-02-11 04:01:07 +00:00
|
|
|
ifeq ($(HAVE_FREETYPE2),yes)
|
2005-09-26 10:05:13 +00:00
|
|
|
HOOKS += drawtext$(SLIBSUF)
|
2003-02-11 04:01:07 +00:00
|
|
|
CFLAGS += `freetype-config --cflags`
|
2006-09-07 23:06:14 +00:00
|
|
|
LIBS_drawtext$(SLIBSUF) = `freetype-config --libs`
|
2005-12-17 18:14:38 +00:00
|
|
|
endif
|
2003-02-11 04:01:07 +00:00
|
|
|
|
2005-09-26 10:05:13 +00:00
|
|
|
SRCS := $(HOOKS:$(SLIBSUF)=.c)
|
2003-01-22 09:53:25 +00:00
|
|
|
|
2006-07-14 15:30:36 +00:00
|
|
|
all: $(HOOKS)
|
|
|
|
|
2006-10-03 17:47:25 +00:00
|
|
|
depend dep: $(SRCS)
|
2003-01-22 09:53:25 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $^ 1>.depend
|
2003-01-14 15:30:42 +00:00
|
|
|
|
2006-03-24 20:34:00 +00:00
|
|
|
install: $(HOOKS)
|
2006-07-15 23:01:52 +00:00
|
|
|
install -d "$(shlibdir)/vhook"
|
|
|
|
install -m 755 $(HOOKS) "$(shlibdir)/vhook"
|
2002-11-21 03:50:36 +00:00
|
|
|
|
2006-05-18 12:14:02 +00:00
|
|
|
uninstall:
|
2006-07-15 23:01:52 +00:00
|
|
|
rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
|
|
|
|
-rmdir "$(shlibdir)/vhook/"
|
2006-05-18 12:14:02 +00:00
|
|
|
|
2005-09-26 10:05:13 +00:00
|
|
|
%$(SLIBSUF): %.o
|
2006-09-13 22:04:40 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $(VHOOKSHFLAGS) $< $(VHOOKLIBS) $(LIBS_$@)
|
2002-11-21 03:50:36 +00:00
|
|
|
|
|
|
|
clean:
|
2007-06-10 21:48:54 +00:00
|
|
|
rm -f *.o *~ *.a *.lib *.so *.dylib *.dll
|
2006-01-16 14:59:54 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2006-01-26 23:42:30 +00:00
|
|
|
rm -f .depend
|
2003-01-22 09:53:25 +00:00
|
|
|
|
2006-10-03 17:42:17 +00:00
|
|
|
.PHONY: all depend dep clean distclean install* uninstall*
|
|
|
|
|
2007-02-26 22:53:38 +00:00
|
|
|
-include .depend
|