znc-push/Makefile
Chris Weyl 4cf7a22f24 ensure push.so is linked with libcurl properly
It looks as if the push module was not actually linking against the libcurl
shared library without these additional flags being passed.
2014-01-27 18:00:18 -08:00

19 lines
429 B
Makefile

version := $(shell git describe --dirty)
curl=no
ifneq ($(curl),no)
flags=-DUSE_CURL -lcurl
else
flags=
endif
push.so: push.cpp
sed -i -e "s|PUSHVERSION \".*\"|PUSHVERSION \"$(version)\"|" push.cpp
CXXFLAGS="$(CXXFLAGS) $(flags)" LIBS="$(LIBS) $(flags)" znc-buildmod push.cpp
sed -i -e "s|PUSHVERSION \".*\"|PUSHVERSION \"dev\"|" push.cpp
install: push.so
cp push.so $(HOME)/.znc/modules/push.so
clean:
-rm -f push.so