summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 10:18:17 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2014-10-09 10:18:17 +0200
commit40a0135c66e3271eb3842c1b66edef68d00de370 (patch)
tree0d757e8804e8f87d9ea3138f08de24749e1336e2 /src
parentf92578d63e8ce19884247343710eafe42edecdf4 (diff)
downloadcrawler-40a0135c66e3271eb3842c1b66edef68d00de370.tar.gz
crawler-40a0135c66e3271eb3842c1b66edef68d00de370.tar.bz2
adaptiosn to use local tolua
Diffstat (limited to 'src')
-rw-r--r--src/modules/urlnormalizer/googleurl/GNUmakefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/modules/urlnormalizer/googleurl/GNUmakefile b/src/modules/urlnormalizer/googleurl/GNUmakefile
index da181aa..499e02b 100644
--- a/src/modules/urlnormalizer/googleurl/GNUmakefile
+++ b/src/modules/urlnormalizer/googleurl/GNUmakefile
@@ -9,11 +9,12 @@ INCLUDE_DIRS = \
-I$(TOPDIR)/include/module \
-I$(TOPDIR)/include/util \
-I$(TOPDIR)/include/crawler \
- -I$(TOPDIR)/googleurl
+ -I$(TOPDIR)/googleurl \
ifeq ($(WITH_LUA),1)
INCLUDE_DIRS += \
- -I$(TOPDIR)/include/luaglue
+ -I$(TOPDIR)/include/luaglue \
+ $(TOLUA_INCLUDES)
endif
INCLUDE_CXXFLAGS = \
@@ -27,6 +28,11 @@ INCLUDE_LDFLAGS = \
-L$(TOPDIR)/googleurl \
-L$(TOPDIR)/src/libcrawler
+ifeq ($(WITH_LUA),1)
+INCLUDE_LDFLAGS += \
+ $(TOLUA_LDFLAGS)
+endif
+
INCLUDE_LIBS = \
-lgoogleurl \
-lcrawler \
@@ -34,7 +40,8 @@ INCLUDE_LIBS = \
ifeq ($(WITH_LUA),1)
INCLUDE_LIBS += \
- -ltolua -llua
+ -llua \
+ $(TOLUA_LIBS)
endif
DYNAMIC_MODULE = \
@@ -54,7 +61,7 @@ endif
-include $(TOPDIR)/makefiles/gmake/sub.mk
GoogleURLNormalizerLua.cpp: GoogleURLNormalizer.pkg
- tolua -H GoogleURLNormalizerLua.hpp -o GoogleURLNormalizerLua.cpp GoogleURLNormalizer.pkg
+ $(TOLUA) -H GoogleURLNormalizerLua.hpp -o GoogleURLNormalizerLua.cpp GoogleURLNormalizer.pkg
local_all: