2002-11-21 03:50:36 +00:00
|
|
|
include ../config.mak
|
|
|
|
|
2002-11-26 03:35:18 +00:00
|
|
|
VPATH=$(SRC_PATH)/vhook
|
|
|
|
|
2003-11-03 20:04:10 +00:00
|
|
|
CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
|
2002-11-21 03:50:36 +00:00
|
|
|
|
2002-11-23 01:29:25 +00:00
|
|
|
ifeq ($(CONFIG_DARWIN),yes)
|
2003-11-03 20:04:10 +00:00
|
|
|
SHFLAGS+=-flat_namespace -undefined suppress
|
2002-11-23 01:29:25 +00:00
|
|
|
endif
|
2005-02-25 22:22:20 +00:00
|
|
|
HOOKS=null.so fish.so ppm.so watermark.so
|
2002-11-21 03:50:36 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_IMLIB2),yes)
|
|
|
|
HOOKS += imlib2.so
|
|
|
|
endif
|
|
|
|
|
2003-02-11 04:01:07 +00:00
|
|
|
ifeq ($(HAVE_FREETYPE2),yes)
|
|
|
|
HOOKS += drawtext.so
|
|
|
|
CFLAGS += `freetype-config --cflags`
|
|
|
|
endif
|
|
|
|
|
2002-11-30 17:12:23 +00:00
|
|
|
all: $(HOOKS)
|
2002-11-21 03:50:36 +00:00
|
|
|
|
2003-02-01 20:56:39 +00:00
|
|
|
SRCS := $(HOOKS:.so=.c)
|
2003-01-22 09:53:25 +00:00
|
|
|
|
2003-02-01 20:56:39 +00:00
|
|
|
depend: $(SRCS)
|
2003-01-22 09:53:25 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $^ 1>.depend
|
2003-01-14 15:30:42 +00:00
|
|
|
|
2002-11-21 03:50:36 +00:00
|
|
|
install:
|
2005-03-16 19:11:58 +00:00
|
|
|
install -d "$(libdir)/vhook"
|
|
|
|
install -m 755 $(HOOKS) "$(libdir)/vhook"
|
2002-11-21 03:50:36 +00:00
|
|
|
|
|
|
|
imlib2.so: imlib2.o
|
2005-07-11 00:15:37 +00:00
|
|
|
$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< -lImlib2
|
2002-11-21 03:50:36 +00:00
|
|
|
|
2003-02-11 04:01:07 +00:00
|
|
|
drawtext.so: drawtext.o
|
2005-07-11 00:15:37 +00:00
|
|
|
$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
|
2003-02-11 04:01:07 +00:00
|
|
|
|
2002-11-21 03:50:36 +00:00
|
|
|
%.so: %.o
|
2005-07-11 00:15:37 +00:00
|
|
|
$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
|
2002-11-21 03:50:36 +00:00
|
|
|
|
|
|
|
clean:
|
2003-01-22 09:55:08 +00:00
|
|
|
rm -f *.o *.d .depend *.so *~
|
2003-01-22 09:53:25 +00:00
|
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|