summaryrefslogtreecommitdiff
path: root/src/modules/urlnormalizer/googleurl/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/urlnormalizer/googleurl/GNUmakefile')
-rw-r--r--src/modules/urlnormalizer/googleurl/GNUmakefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/modules/urlnormalizer/googleurl/GNUmakefile b/src/modules/urlnormalizer/googleurl/GNUmakefile
index ddd9e73..da181aa 100644
--- a/src/modules/urlnormalizer/googleurl/GNUmakefile
+++ b/src/modules/urlnormalizer/googleurl/GNUmakefile
@@ -11,8 +11,18 @@ INCLUDE_DIRS = \
-I$(TOPDIR)/include/crawler \
-I$(TOPDIR)/googleurl
+ifeq ($(WITH_LUA),1)
+INCLUDE_DIRS += \
+ -I$(TOPDIR)/include/luaglue
+endif
+
INCLUDE_CXXFLAGS = \
+ifeq ($(WITH_LUA),1)
+INCLUDE_CXXFLAGS += \
+ -DWITH_LUA
+endif
+
INCLUDE_LDFLAGS = \
-L$(TOPDIR)/googleurl \
-L$(TOPDIR)/src/libcrawler
@@ -22,6 +32,11 @@ INCLUDE_LIBS = \
-lcrawler \
-licui18n -licuuc
+ifeq ($(WITH_LUA),1)
+INCLUDE_LIBS += \
+ -ltolua -llua
+endif
+
DYNAMIC_MODULE = \
mod_urlnormalizer_googleurl.so
@@ -31,11 +46,22 @@ STATIC_LIB = \
CPP_OBJS = \
GoogleURLNormalizer.o
+ifeq ($(WITH_LUA),1)
+CPP_OBJS += \
+ GoogleURLNormalizerLua.o
+endif
+
-include $(TOPDIR)/makefiles/gmake/sub.mk
+GoogleURLNormalizerLua.cpp: GoogleURLNormalizer.pkg
+ tolua -H GoogleURLNormalizerLua.hpp -o GoogleURLNormalizerLua.cpp GoogleURLNormalizer.pkg
+
local_all:
local_clean:
+ifeq ($(WITH_LUA),1)
+ @-rm GoogleURLNormalizerLua.cpp GoogleURLNormalizerLua.hpp
+endif
local_distclean: