mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
don't build modules that require ssl
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@91 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+11
-2
@@ -4,11 +4,20 @@ CXXFLAGS=@CXXFLAGS@
|
||||
INCLUDES=@INCLUDES@ -I..
|
||||
LIBS=@LIBS@
|
||||
VPATH=.:..
|
||||
|
||||
ifeq "@NOSSL@" "1"
|
||||
TARGETS=$(foreach file, $(wildcard *.cpp), $(if $(shell grep HAVE_LIBSSL $(file)),, $(addsuffix .so, $(basename $(file)))))
|
||||
INSTALL_TARGS=$(foreach file, $(wildcard *.cpp), $(if $(shell grep HAVE_LIBSSL $(file)),, install_$(addsuffix .so, $(basename $(file)))))
|
||||
OBJS=$(foreach file, $(wildcard *.cpp), $(if $(shell grep HAVE_LIBSSL $(file)),, $(addsuffix .o, $(basename $(file)))))
|
||||
SRCS=$(wildcard ../*.cpp) $(foreach file, $(wildcard *.cpp), $(if $(shell grep HAVE_LIBSSL $(file)),,$(file)))
|
||||
else
|
||||
TARGETS=$(addsuffix .so, $(basename $(wildcard *.cpp)))
|
||||
INSTALL_TARGS=$(foreach file, $(addsuffix .so, $(basename $(wildcard *.cpp))), install_$(file))
|
||||
OBJS=$(addsuffix .o, $(basename $(wildcard *.cpp)))
|
||||
SRCS=$(wildcard *.cpp) $(wildcard ../*.cpp)
|
||||
INSTALL_TARGS=$(foreach file, $(addsuffix .so, $(basename $(wildcard *.cpp))), install_$(file))
|
||||
endif
|
||||
|
||||
all: $(OBJS) $(addsuffix .so, $(basename $(wildcard *.cpp)))
|
||||
all: $(OBJS) $(TARGETS)
|
||||
|
||||
depend::
|
||||
g++ -M $(CXXFLAGS) $(SRCS) $(INCLUDES) >.depend
|
||||
|
||||
Reference in New Issue
Block a user