diff options
Diffstat (limited to 'src/modules/urlnormalizer/googleurl/Makefile.W32')
-rwxr-xr-x | src/modules/urlnormalizer/googleurl/Makefile.W32 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/modules/urlnormalizer/googleurl/Makefile.W32 b/src/modules/urlnormalizer/googleurl/Makefile.W32 index fb0a76b..6934972 100755 --- a/src/modules/urlnormalizer/googleurl/Makefile.W32 +++ b/src/modules/urlnormalizer/googleurl/Makefile.W32 @@ -7,6 +7,12 @@ SUBDIRS = INCLUDE_CXXFLAGS = \ /D_WIN32_WINNT=0x504 /DWIN32 +!IFDEF WITH_LUA +INCLUDE_CXXFLAGS = $(INCLUDE_CXXFLAGS) \ + /DWITH_LUA \ + $(TOLUA_CFLAGS) +!ENDIF + INCLUDE_DIRS = \ /I. \ /I$(TOPDIR)\src \ @@ -15,12 +21,29 @@ INCLUDE_DIRS = \ /I$(TOPDIR)\include\crawler \ /I$(TOPDIR)\googleurl +!IFDEF WITH_LUA +INCLUDE_DIRS = $(INCLUDE_DIRS) \ + -I$(TOPDIR)\include\luaglue \ + $(TOLUA_INCLUDES) +!ENDIF + INCLUDE_LDFLAGS = \ +!IFDEF WITH_LUA +INCLUDE_LDFLAGS = $(INCLUDE_LDFLAGS) \ + $(TOLUA_LDFLAGS) +!ENDIF + INCLUDE_LIBS = \ $(TOPDIR)\googleurl\googleurl.lib \ $(TOPDIR)\src\libcrawler\crawler.lib +!IFDEF WITH_LUA +INCLUDE_LIBS = $(INCLUDE_LIBS) \ + $(TOPDIR)\src\libluaglue\luaglue.lib \ + $(TOLUA_LIBS) +!ENDIF + !IFDEF DEBUG INCLUDE_LIBS = $(INCLUDE_LIBS) \ "$(ICU_DIR)\lib\icuucd.lib" @@ -38,11 +61,28 @@ STATIC_LIB = \ CPP_OBJS = \ GoogleURLNormalizer.obj +!IFDEF WITH_LUA +CPP_OBJS = $(CPP_OBJS) \ + GoogleURLNormalizerLua.obj +!ENDIF + SHARED_CPP_OBJS = \ GoogleURLNormalizer.dllobj +!IFDEF WITH_LUA +SHARED_CPP_OBJS = $(SHARED_CPP_OBJS) \ + GoogleURLNormalizerLua.dllobj +!ENDIF + !INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk +!IFDEF WITH_LUA +GoogleURLNormalizer.cpp: GoogleURLNormalizerLua.hpp + +GoogleURLNormalizerLua.hpp: GoogleURLNormalizer.pkg + $(TOLUA) -H GoogleURLNormalizerLua.hpp -o GoogleURLNormalizerLua.cpp GoogleURLNormalizer.pkg +!ENDIF + $(STATIC_LIB): $(CPP_OBJS) $(LINK) /lib /nologo /out:$@ $(STATIC_LDFLAGS) $? @@ -54,6 +94,9 @@ local_all: $(STATIC_LIB) $(DYNAMIC_MODULE) local_clean: @-erase $(LOCAL_STATIC_LIB) 2>NUL @-erase $(CPP_OBJS) 2>NUL +!IFDEF WITH_LUA + @-erase GoogleURLNormalizerLua.cpp GoogleURLNormalizerLua.hpp 2>NUL +!ENDIF local_distclean: |