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.

40 lines
695B

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