diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 10:40:23 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-12 10:40:23 +0200 |
commit | fe4e07657381e7db947630981a1d34410e4753e3 (patch) | |
tree | 7daf065a73ab29fd954f81e40dfde9f6e66a022a /src/modules | |
parent | b2f35389b68fb1e58ea13dc273fdebaf534a325c (diff) | |
download | crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.gz crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.bz2 |
streamhtmlparser works on Windows
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/Makefile.W32 | 2 | ||||
-rwxr-xr-x | src/modules/processor/Makefile.W32 | 13 | ||||
-rwxr-xr-x | src/modules/processor/htmllinkextract/Makefile.W32 | 46 | ||||
-rwxr-xr-x | src/modules/urlnormalizer/googleurl/Makefile.W32 | 2 |
4 files changed, 61 insertions, 2 deletions
diff --git a/src/modules/Makefile.W32 b/src/modules/Makefile.W32 index ddd6338..fd4004b 100644 --- a/src/modules/Makefile.W32 +++ b/src/modules/Makefile.W32 @@ -2,7 +2,7 @@ TOPDIR = ..\.. SUBDIRS = \ urlnormalizer urlfilter frontier fetcher urlseen \ - deduper + deduper processor #SUBDIRS = \ # urlnormalizer urlfilter frontier fetcher urlseen \ diff --git a/src/modules/processor/Makefile.W32 b/src/modules/processor/Makefile.W32 new file mode 100755 index 0000000..f98b918 --- /dev/null +++ b/src/modules/processor/Makefile.W32 @@ -0,0 +1,13 @@ +TOPDIR = ..\..\.. + +SUBDIRS = htmllinkextract + +!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk + +local_all: + +local_clean: + +local_distclean: + +local_test: diff --git a/src/modules/processor/htmllinkextract/Makefile.W32 b/src/modules/processor/htmllinkextract/Makefile.W32 new file mode 100755 index 0000000..f4161ba --- /dev/null +++ b/src/modules/processor/htmllinkextract/Makefile.W32 @@ -0,0 +1,46 @@ +TOPDIR = ..\..\..\.. + +SUBDIRS = + +!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk + +INCLUDE_CXXFLAGS = \ + /D_WIN32_WINNT=0x504 /DSHARED + +INCLUDE_DIRS = \ + /I. \ + /I$(TOPDIR)\src \ + /I$(TOPDIR)\streamhtmlparser + +INCLUDE_LDFLAGS = \ + +INCLUDE_LIBS = \ + $(TOPDIR)\streamhtmlparser\streamhtmlparser.lib \ + $(TOPDIR)\src\crawlingwolf.lib + +DYNAMIC_MODULE = \ + mod_processor_htmllinkextract.dll + +STATIC_LIB = \ + htmllinkextractprocessor.lib + +CPP_OBJS = \ + HTMLLinkExtractProcessor.obj + +!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk + +$(STATIC_LIB): $(CPP_OBJS) + $(LINK) /lib /nologo /out:$@ $(STATIC_LDFLAGS) $? + +$(DYNAMIC_MODULE): $(CPP_OBJS) + $(LINK) /dll /nologo /out:$@ $(LDFLAGS) $(LIBS) $? + +local_all: $(STATIC_LIB) $(DYNAMIC_MODULE) + +local_clean: + @-erase $(LOCAL_STATIC_LIB) 2>NUL + @-erase $(CPP_OBJS) 2>NUL + +local_distclean: + +local_test: diff --git a/src/modules/urlnormalizer/googleurl/Makefile.W32 b/src/modules/urlnormalizer/googleurl/Makefile.W32 index de4d644..712f493 100755 --- a/src/modules/urlnormalizer/googleurl/Makefile.W32 +++ b/src/modules/urlnormalizer/googleurl/Makefile.W32 @@ -10,7 +10,7 @@ INCLUDE_CXXFLAGS = \ INCLUDE_DIRS = \ /I. \ /I$(TOPDIR)\src \ - /I$(TOPDIR)/googleurl + /I$(TOPDIR)\googleurl INCLUDE_LDFLAGS = \ |