summaryrefslogtreecommitdiff
path: root/src/modules/urlnormalizer/simpleurl/GNUmakefile
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-16 15:50:30 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-16 15:50:30 +0200
commit4ff9da462748b8811cdbe27c7ef3babaa5c119c3 (patch)
tree70309bfce4ea970540352ffad7b191e72a0b488f /src/modules/urlnormalizer/simpleurl/GNUmakefile
parent971d5d22e7117acb95c7903dd5b911b96fc97dcf (diff)
downloadcrawler-4ff9da462748b8811cdbe27c7ef3babaa5c119c3.tar.gz
crawler-4ff9da462748b8811cdbe27c7ef3babaa5c119c3.tar.bz2
testing with two urlnormalizer modules (google and simple) in crawl.conf
Diffstat (limited to 'src/modules/urlnormalizer/simpleurl/GNUmakefile')
-rw-r--r--src/modules/urlnormalizer/simpleurl/GNUmakefile33
1 files changed, 33 insertions, 0 deletions
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: