Makefile 393 B

123456789101112131415161718192021
  1. version = $(shell git describe --dirty || echo dev)
  2. curl=no
  3. ifneq ($(curl),no)
  4. flags=-DUSE_CURL -lcurl
  5. else
  6. flags=
  7. endif
  8. all: push.so
  9. push.so: push.cpp
  10. CXXFLAGS="$(CXXFLAGS) -DPUSHVERSION=\"\\\"$(version)\\\"\" $(flags)" LIBS="$(LIBS) $(flags)" \
  11. znc-buildmod push.cpp
  12. install: push.so
  13. mkdir -p $(HOME)/.znc/modules/
  14. cp push.so $(HOME)/.znc/modules/push.so
  15. clean:
  16. -rm -f push.so