2015-09-24 01:51:16 +00:00
|
|
|
version = $(shell git describe --dirty || echo dev)
|
2013-10-28 23:55:18 +00:00
|
|
|
curl=no
|
|
|
|
|
|
|
|
ifneq ($(curl),no)
|
|
|
|
flags=-DUSE_CURL -lcurl
|
|
|
|
else
|
|
|
|
flags=
|
|
|
|
endif
|
2013-07-31 17:35:53 +00:00
|
|
|
|
2015-09-24 01:51:16 +00:00
|
|
|
all: push.so
|
|
|
|
|
2011-09-29 13:30:06 +00:00
|
|
|
push.so: push.cpp
|
2015-09-24 01:51:16 +00:00
|
|
|
CXXFLAGS="$(CXXFLAGS) -DPUSHVERSION=\"$(version)\" $(flags)" LIBS="$(LIBS) $(flags)" \
|
|
|
|
znc-buildmod push.cpp
|
2011-01-11 03:33:13 +00:00
|
|
|
|
2012-08-31 18:15:58 +00:00
|
|
|
install: push.so
|
2015-04-05 22:57:46 +00:00
|
|
|
mkdir -p $(HOME)/.znc/modules/
|
2012-08-31 18:15:58 +00:00
|
|
|
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
|