2002-11-21 04:50:36 +01:00
|
|
|
include ../config.mak
|
|
|
|
|
2002-11-26 04:35:18 +01:00
|
|
|
VPATH=$(SRC_PATH)/vhook
|
|
|
|
|
2002-11-29 15:56:03 +01:00
|
|
|
CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
|
2002-11-21 04:50:36 +01:00
|
|
|
|
2002-11-23 02:29:25 +01:00
|
|
|
ifeq ($(CONFIG_DARWIN),yes)
|
2002-11-26 04:35:18 +01:00
|
|
|
SHFLAGS+=-bundle -flat_namespace -undefined suppress
|
2002-11-23 02:29:25 +01:00
|
|
|
endif
|
2002-11-21 04:50:36 +01:00
|
|
|
HOOKS=null.so fish.so
|
|
|
|
|
|
|
|
ifeq ($(HAVE_IMLIB2),yes)
|
|
|
|
HOOKS += imlib2.so
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(HOOKS) hooks.html
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -s -m 755 $(HOOKS) $(INSTDIR)
|
|
|
|
|
|
|
|
imlib2.so: imlib2.o
|
2002-11-26 04:35:18 +01:00
|
|
|
$(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
|
2002-11-21 04:50:36 +01:00
|
|
|
rm $<
|
|
|
|
|
|
|
|
%.so: %.o
|
2002-11-26 04:35:18 +01:00
|
|
|
$(CC) -g -o $@ $(SHFLAGS) $<
|
2002-11-21 04:50:36 +01:00
|
|
|
|
|
|
|
%.html: %.texi
|
|
|
|
texi2html -monolithic -number $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~
|