znc-push/Makefile

22 lines
393 B
Makefile
Raw Normal View History

version = $(shell git describe --dirty || echo dev)
curl=no
ifneq ($(curl),no)
flags=-DUSE_CURL -lcurl
else
flags=
endif
all: push.so
2011-09-29 13:30:06 +00:00
push.so: push.cpp
CXXFLAGS="$(CXXFLAGS) -DPUSHVERSION=\"\\\"$(version)\\\"\" $(flags)" LIBS="$(LIBS) $(flags)" \
znc-buildmod push.cpp
install: push.so
mkdir -p $(HOME)/.znc/modules/
cp push.so $(HOME)/.znc/modules/push.so
2011-09-28 20:26:24 +00:00
clean:
2011-09-29 13:30:06 +00:00
-rm -f push.so