mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Fix the Makefile for --disable-perl
We still had modperl in FILES and thus tried to compile / install it To avoid an endless loop I need := instead of = on the assignment with sed. For consistency I changed all the others too (this should also be faster). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@861 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+23
-22
@@ -1,35 +1,36 @@
|
||||
CXX = @CXX@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
INCLUDES = @INCLUDES@ -I..
|
||||
LIBS = @LIBS@
|
||||
PERL = @PERL@
|
||||
MODDIR = @MODDIR@
|
||||
prefix = @prefix@
|
||||
|
||||
ifneq "$(PERL)" ""
|
||||
PERLCC = -DHAVE_PERL `$(PERL) -MExtUtils::Embed -e perl_inc`
|
||||
PERLLD = `$(PERL) -MExtUtils::Embed -e perl_inc -e ldopts`
|
||||
PERLHOOK = modperl_install
|
||||
else
|
||||
PERLHOOK =
|
||||
endif
|
||||
CXX := @CXX@
|
||||
CXXFLAGS := @CXXFLAGS@
|
||||
LDFLAGS := @LDFLAGS@
|
||||
INCLUDES := @INCLUDES@ -I..
|
||||
LIBS := @LIBS@
|
||||
PERL := @PERL@
|
||||
MODDIR := @MODDIR@
|
||||
prefix := @prefix@
|
||||
|
||||
ifeq "@NOSSL@" "1"
|
||||
FILES = $(foreach file, $(wildcard *.cpp), \
|
||||
FILES := $(foreach file, $(wildcard *.cpp), \
|
||||
$(if $(shell grep REQUIRESSL $(file)), \
|
||||
, \
|
||||
$(basename $(file)) \
|
||||
))
|
||||
else
|
||||
FILES = $(basename $(wildcard *.cpp))
|
||||
FILES := $(basename $(wildcard *.cpp))
|
||||
endif
|
||||
|
||||
SRCS = $(wildcard ../*.cpp) $(addsuffix .cpp, $(FILES))
|
||||
OBJS = $(addsuffix .o, $(FILES))
|
||||
TARGETS = $(addsuffix .so, $(FILES))
|
||||
ifneq "$(PERL)" ""
|
||||
PERLCC := -DHAVE_PERL `$(PERL) -MExtUtils::Embed -e perl_inc`
|
||||
PERLLD := `$(PERL) -MExtUtils::Embed -e perl_inc -e ldopts`
|
||||
PERLHOOK := modperl_install
|
||||
else
|
||||
PERLHOOK :=
|
||||
FILES := $(shell echo $(FILES) | sed -e "s/modperl//")
|
||||
endif
|
||||
|
||||
CLEAN = *.so *.o
|
||||
SRCS := $(wildcard ../*.cpp) $(addsuffix .cpp, $(FILES))
|
||||
OBJS := $(addsuffix .o, $(FILES))
|
||||
TARGETS := $(addsuffix .so, $(FILES))
|
||||
|
||||
CLEAN := *.so *.o
|
||||
|
||||
.PHONY: all clean install depend modperl_install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user