summaryrefslogtreecommitdiff
path: root/src/modules/urlnormalizer/simpleurl/GNUmakefile
diff options
context:
space:
mode:
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: