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