2002-11-21 03:50:36 +00:00
|
|
|
include ../config.mak
|
|
|
|
|
2002-11-25 19:07:40 +00:00
|
|
|
CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I../libavformat -I../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)
|
|
|
|
LDFLAGS+=-bundle -flat_namespace -undefined suppress
|
|
|
|
else
|
|
|
|
LDFLAGS+=-shared
|
|
|
|
endif
|
2002-11-21 03:50:36 +00: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-23 01:29:25 +00:00
|
|
|
$(CC) -g -o $@ $(LDFLAGS) $< -lImlib2
|
2002-11-21 03:50:36 +00:00
|
|
|
rm $<
|
|
|
|
|
|
|
|
%.so: %.o
|
2002-11-23 01:29:25 +00:00
|
|
|
$(CC) -g -o $@ $(LDFLAGS) $<
|
2002-11-21 03:50:36 +00:00
|
|
|
|
|
|
|
%.html: %.texi
|
|
|
|
texi2html -monolithic -number $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.so *~
|