Add the necessary makefile magic for compiling on cygwin

This also works with make install (thanks to rpath).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1351 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-01-26 19:57:34 +00:00
parent 177a5d24db
commit 432a04e545
4 changed files with 51 additions and 11 deletions
+6
View File
@@ -22,6 +22,12 @@ LDFLAGS := @LDFLAGS@
PERL := @PERL@
MODDIR := @MODDIR@
DATADIR := @DATADIR@
LIBZNC := @LIBZNC@
LIBZNCDIR:= @LIBZNCDIR@
ifneq "$(LIBZNC)" ""
LDFLAGS += -L.. -lznc -Wl,-rpath,$(LIBZNCDIR)
endif
FILES := $(basename $(wildcard $(srcdir)/*.cpp))
# Strip away the srcdir, we want them to be created in the current dir