add makefile
This commit is contained in:
parent
78882015f9
commit
45a4bd749c
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
version = $(shell git describe --dirty || echo dev)
|
||||||
|
curl=no
|
||||||
|
|
||||||
|
ifneq ($(curl),no)
|
||||||
|
flags=-DUSE_CURL -lcurl
|
||||||
|
else
|
||||||
|
flags=
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: push.so
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f push.so
|
Loading…
Reference in New Issue
Block a user