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