forked from Igloo/Push
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
411 B
Makefile
22 lines
411 B
Makefile
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)" \
|
|
$(HOME)/.local/bin/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
|