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.

46 lines
860B

  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. ifeq ($(HAVE_FREETYPE2),yes)
  12. HOOKS += drawtext.so
  13. CFLAGS += `freetype-config --cflags`
  14. endif
  15. all: $(HOOKS)
  16. SRCS := $(HOOKS:.so=.c)
  17. depend: $(SRCS)
  18. $(CC) -MM $(CFLAGS) $^ 1>.depend
  19. install:
  20. install -s -m 755 $(HOOKS) $(INSTDIR)
  21. imlib2.so: imlib2.o
  22. $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
  23. drawtext.so: drawtext.o
  24. $(CC) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
  25. %.so: %.o
  26. $(CC) -g -o $@ $(SHFLAGS) $<
  27. clean:
  28. rm -f *.o *.d .depend *.so *~
  29. ifneq ($(wildcard .depend),)
  30. include .depend
  31. endif