TOPDIR = ..\.. SUBDIRS = !INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk INCLUDE_CXXFLAGS = \ /D_WIN32_WINNT=0x504 /DSHARED # /DUSE_MODULELOADER INCLUDE_DIRS = \ /I. \ /I$(TOPDIR)\src \ /I$(TOPDIR)\include \ /I$(TOPDIR)\include\module \ /I$(TOPDIR)\include\util \ /I$(TOPDIR)\include\crawler \ /I$(TOPDIR)\src\modules\urlnormalizer\simpleurl \ /I$(TOPDIR)\src\modules\urlnormalizer\googleurl INCLUDE_LDFLAGS = \ INCLUDE_LIBS = \ $(TOPDIR)\src\libutil\util.lib \ $(TOPDIR)\src\libcrawler\crawler.lib \ $(TOPDIR)\src\modules\urlnormalizer\simpleurl\simpleurlnormalizer.lib \ $(TOPDIR)\src\modules\urlnormalizer\googleurl\googleurlnormalizer.lib \ $(TOPDIR)\googleurl\googleurl.lib !IFDEF WITH_LUA INCLUDE_LIBS = $(INCLUDE_LIBS) \ $(TOPDIR)\src\libluaglue\luaglue.lib \ $(TOLUA_LIBS) \ $(TOPDIR)\src\libcrawler\crawlerstatic.lib !ENDIF !IFDEF DEBUG INCLUDE_LIBS = $(INCLUDE_LIBS) \ "$(ICU_DIR)\lib\icuucd.lib" !ELSE INCLUDE_LIBS = $(INCLUDE_LIBS) \ "$(ICU_DIR)\lib\icuuc.lib" !ENDIF TEST_CPP_BINS = \ test1.exe OBJS = !INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk test1.exe: test1.obj local_all: local_clean: @-erase -f *.RES *.DIFF *.ERR 2>NUL local_distclean: local_test: @-copy "$(ICU_DIR)\bin\icuuc52d.dll" . >NUL @-copy "$(ICU_DIR)\bin\icudt52.dll" . >NUL @-for %%m in ( simple_urlnormalizer google_urlnormalizer ) do \ @echo Using URL normalizer '%m'.. & \ @exec_test test1 test1 "parse illegal protocol" %m parse www.andreasbaumann.cc & \ @exec_test test1 test2 "parse normal start URL without slash" %m parse http://www.andreasbaumann.cc & \ @exec_test test1 test3 "parse normal start URL with slash" %m parse http://www.andreasbaumann.cc/ & \ @exec_test test1 test4 "parse normal URL" %m parse http://www.andreasbaumann.cc/index.html & \ @exec_test test1 test5 "parse normal URL with default port" %m parse http://www.andreasbaumann.cc:80/index.html & \ @exec_test test1 test6 "parse normal URL with non-standard port" %m parse http://www.andreasbaumann.cc:8080/index.html & \ @exec_test test1 test100 "normalize a relative URL" %m normalize http://www.andreasbaumann.cc/index.html /software.html & \ @exec_test test1 test101 "absolute URL in HTML content" %m normalize http://www.andreasbaumann.cc/index.html http://www.yahoo.com/page.html & \ @exec_test test1 test102 "path normalization, relative path" %m normalize http://www.andreasbaumann.cc/adir/index.html bdir/page.html & \ @exec_test test1 test103 "path normalization, absolute path" %m normalize http://www.andreasbaumann.cc/adir/index.html /bdir/page.html & \ @exec_test test1 test104 "path normalization, current dir" %m normalize http://www.andreasbaumann.cc/adir/index.html ./bdir/page.html & \ @exec_test test1 test105 "path normalization, previous dir" %m normalize http://www.andreasbaumann.cc/adir/index.html ../bdir/page.html