From 4ff9da462748b8811cdbe27c7ef3babaa5c119c3 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 16 Oct 2014 15:50:30 +0200 Subject: testing with two urlnormalizer modules (google and simple) in crawl.conf --- src/modules/urlnormalizer/simpleurl/GNUmakefile | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src/modules/urlnormalizer/simpleurl/GNUmakefile') diff --git a/src/modules/urlnormalizer/simpleurl/GNUmakefile b/src/modules/urlnormalizer/simpleurl/GNUmakefile index d7e6378..64053a9 100644 --- a/src/modules/urlnormalizer/simpleurl/GNUmakefile +++ b/src/modules/urlnormalizer/simpleurl/GNUmakefile @@ -10,14 +10,36 @@ INCLUDE_DIRS = \ -I$(TOPDIR)/include/util \ -I$(TOPDIR)/include/crawler +ifeq ($(WITH_LUA),1) +INCLUDE_DIRS += \ + -I$(TOPDIR)/include/luaglue \ + $(TOLUA_INCLUDES) +endif + INCLUDE_CXXFLAGS = \ +ifeq ($(WITH_LUA),1) +INCLUDE_CXXFLAGS += \ + -DWITH_LUA +endif + INCLUDE_LDFLAGS = \ -L$(TOPDIR)/src/libcrawler +ifeq ($(WITH_LUA),1) +INCLUDE_LDFLAGS += \ + $(TOLUA_LDFLAGS) +endif + INCLUDE_LIBS = \ -lcrawler +ifeq ($(WITH_LUA),1) +INCLUDE_LIBS += \ + -llua \ + $(TOLUA_LIBS) +endif + DYNAMIC_MODULE = \ mod_urlnormalizer_simple.so @@ -27,11 +49,22 @@ STATIC_LIB = \ CPP_OBJS = \ SimpleURLNormalizer.o +ifeq ($(WITH_LUA),1) +CPP_OBJS += \ + SimpleURLNormalizerLua.o +endif + -include $(TOPDIR)/makefiles/gmake/sub.mk +SimpleURLNormalizerLua.cpp: SimpleURLNormalizer.pkg + $(TOLUA) -H SimpleURLNormalizerLua.hpp -o SimpleURLNormalizerLua.cpp SimpleURLNormalizer.pkg + local_all: local_clean: +ifeq ($(WITH_LUA),1) + @-rm SimpleURLNormalizerLua.cpp SimpleURLNormalizerLua.hpp +endif local_distclean: -- cgit v1.2.3-54-g00ecf