You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
560B

  1. include ../config.mak
  2. CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I../libav -I../libavcodec -DHAVE_AV_CONFIG_H
  3. ifeq ($(CONFIG_DARWIN),yes)
  4. LDFLAGS+=-bundle -flat_namespace -undefined suppress
  5. else
  6. LDFLAGS+=-shared
  7. endif
  8. HOOKS=null.so fish.so
  9. ifeq ($(HAVE_IMLIB2),yes)
  10. HOOKS += imlib2.so
  11. endif
  12. all: $(HOOKS) hooks.html
  13. install:
  14. install -s -m 755 $(HOOKS) $(INSTDIR)
  15. imlib2.so: imlib2.o
  16. $(CC) -g -o $@ $(LDFLAGS) $< -lImlib2
  17. rm $<
  18. %.so: %.o
  19. $(CC) -g -o $@ $(LDFLAGS) $<
  20. %.html: %.texi
  21. texi2html -monolithic -number $<
  22. clean:
  23. rm -f *.o *.so *~