diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 13:24:12 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 13:24:12 +0200 |
commit | 595f6b02c854fdc412a180fc6767148d6eebd394 (patch) | |
tree | ec20d12b00203d684db3ef44f2ed6e0390f7e02b /tests/url/GNUmakefile | |
parent | c439b87bc9bc4d25982ec0044468bd405fac8296 (diff) | |
download | crawler-595f6b02c854fdc412a180fc6767148d6eebd394.tar.gz crawler-595f6b02c854fdc412a180fc6767148d6eebd394.tar.bz2 |
fixed some tests
Diffstat (limited to 'tests/url/GNUmakefile')
-rw-r--r-- | tests/url/GNUmakefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/url/GNUmakefile b/tests/url/GNUmakefile index a2c4af3..0cf15da 100644 --- a/tests/url/GNUmakefile +++ b/tests/url/GNUmakefile @@ -13,11 +13,28 @@ INCLUDE_DIRS = \ -I$(TOPDIR)/include/util \ -I$(TOPDIR)/include/crawler +ifeq ($(WITH_LUA),1) +INCLUDE_DIRS += \ + -I$(TOPDIR)/include/luaglue \ + $(TOLUA_INCLUDES) +endif + +ifeq ($(WITH_LUA),1) +INCLUDE_CXXFLAGS += \ + -DWITH_LUA +endif + INCLUDE_LDFLAGS = \ -L$(TOPDIR)/src/libcrawler \ -L$(TOPDIR)/src/liblogger \ -L$(TOPDIR)/googleurl +ifeq ($(WITH_LUA),1) +INCLUDE_LDFLAGS += \ + -L$(TOPDIR)/src/libluaglue \ + $(TOLUA_LDFLAGS) +endif + INCLUDE_LIBS = \ -lcurl \ $(TOPDIR)/src/modules/urlnormalizer/simpleurl/libsimpleurlnormalizer.a \ @@ -27,6 +44,13 @@ INCLUDE_LIBS = \ -llogger \ -licui18n -licuuc +ifeq ($(WITH_LUA),1) +INCLUDE_LIBS += \ + -lluaglue \ + -llua \ + $(TOLUA_LIBS) +endif + TEST_CPP_BINS = \ test1$(EXE) |