From 3fc6e3cf5b586640a057e3f8335605c2bf5784ec Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 9 Oct 2014 15:49:49 +0200 Subject: first running lua code with URL normalization, cleanup needed.. --- src/libcrawler/GNUmakefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/libcrawler/GNUmakefile') diff --git a/src/libcrawler/GNUmakefile b/src/libcrawler/GNUmakefile index e28b916..d546058 100755 --- a/src/libcrawler/GNUmakefile +++ b/src/libcrawler/GNUmakefile @@ -8,14 +8,31 @@ INCLUDE_CPPFLAGS = \ INCLUDE_LDFLAGS = \ +ifeq ($(WITH_LUA),1) +INCLUDE_LDFLAGS += \ + $(TOLUA_LDFLAGS) +endif + INCLUDE_DIRS = \ -I. \ -I$(TOPDIR)/include/logger \ -I$(TOPDIR)/include/util \ -I$(TOPDIR)/include/crawler +ifeq ($(WITH_LUA),1) +INCLUDE_DIRS += \ + -I$(TOPDIR)/include/luaglue \ + $(TOLUA_INCLUDES) +endif + INCLUDE_LIBS = \ +ifeq ($(WITH_LUA),1) +INCLUDE_LIBS += \ + -llua \ + $(TOLUA_LIBS) +endif + STATIC_LIB = libcrawler.a DYNAMIC_LIB = libcrawler.so @@ -28,8 +45,16 @@ CPP_OBJS = \ MIMEType.o \ SpoolRewindInputStream.o +ifeq ($(WITH_LUA),1) +CPP_OBJS += \ + URLLua.o +endif + -include $(TOPDIR)/makefiles/gmake/sub.mk +URLLua.cpp: URL.pkg + $(TOLUA) -H URLLua.hpp -o URLLua.cpp URL.pkg + local_all: local_clean: -- cgit v1.2.3-54-g00ecf