2002-11-21 04:50:36 +01:00
|
|
|
include ../config.mak
|
|
|
|
|
2002-11-26 04:35:18 +01:00
|
|
|
VPATH=$(SRC_PATH)/vhook
|
|
|
|
|
2006-07-05 16:12:00 +02:00
|
|
|
CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat \
|
|
|
|
-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
|
2002-11-21 04:50:36 +01:00
|
|
|
|
2005-09-26 12:05:13 +02:00
|
|
|
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
|
2006-07-14 17:30:36 +02:00
|
|
|
ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
|
2002-11-21 04:50:36 +01:00
|
|
|
|
|
|
|
ifeq ($(HAVE_IMLIB2),yes)
|
2005-09-26 12:05:13 +02:00
|
|
|
HOOKS += imlib2$(SLIBSUF)
|
2006-05-18 11:02:05 +02:00
|
|
|
LDFLAGS += -lImlib2
|
2005-12-17 19:14:38 +01:00
|
|
|
endif
|
2002-11-21 04:50:36 +01:00
|
|
|
|
2003-02-11 05:01:07 +01:00
|
|
|
ifeq ($(HAVE_FREETYPE2),yes)
|
2005-09-26 12:05:13 +02:00
|
|
|
HOOKS += drawtext$(SLIBSUF)
|
2003-02-11 05:01:07 +01:00
|
|
|
CFLAGS += `freetype-config --cflags`
|
2006-05-18 11:02:05 +02:00
|
|
|
LDFLAGS += `freetype-config --libs`
|
2005-12-17 19:14:38 +01:00
|
|
|
endif
|
2003-02-11 05:01:07 +01:00
|
|
|
|
2005-09-26 12:05:13 +02:00
|
|
|
SRCS := $(HOOKS:$(SLIBSUF)=.c)
|
2003-01-22 10:53:25 +01:00
|
|
|
|
2006-07-14 17:30:36 +02:00
|
|
|
all: $(HOOKS)
|
|
|
|
|
2003-02-01 21:56:39 +01:00
|
|
|
depend: $(SRCS)
|
2003-01-22 10:53:25 +01:00
|
|
|
$(CC) -MM $(CFLAGS) $^ 1>.depend
|
2003-01-14 16:30:42 +01:00
|
|
|
|
2006-03-24 21:34:00 +01:00
|
|
|
install: $(HOOKS)
|
2006-07-16 01:01:52 +02:00
|
|
|
install -d "$(shlibdir)/vhook"
|
|
|
|
install -m 755 $(HOOKS) "$(shlibdir)/vhook"
|
2002-11-21 04:50:36 +01:00
|
|
|
|
2006-05-18 14:14:02 +02:00
|
|
|
uninstall:
|
2006-07-16 01:01:52 +02:00
|
|
|
rm -f $(addprefix $(shlibdir)/vhook/,$(ALLHOOKS))
|
|
|
|
-rmdir "$(shlibdir)/vhook/"
|
2006-05-18 14:14:02 +02:00
|
|
|
|
2005-09-26 12:05:13 +02:00
|
|
|
%$(SLIBSUF): %.o
|
2006-07-14 18:18:59 +02:00
|
|
|
$(CC) $(LDFLAGS) -g -o $@ $(VHOOKFLAGS) $<
|
2002-11-21 04:50:36 +01:00
|
|
|
|
|
|
|
clean:
|
2006-01-16 15:59:54 +01:00
|
|
|
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
|
|
|
|
|
|
|
|
distclean: clean
|
2006-01-27 00:42:30 +01:00
|
|
|
rm -f .depend
|
2003-01-22 10:53:25 +01:00
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|