projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MP version in bookinfo
[metaproxy-moved-to-github.git]
/
win
/
makefile
diff --git
a/win/makefile
b/win/makefile
index
263bb2d
..
f9d3e96
100644
(file)
--- a/
win/makefile
+++ b/
win/makefile
@@
-1,25
+1,30
@@
-# Copyright (C) 2005, Index Data ApS
+# Copyright (C) 2005-2006, Index Data ApS
# All rights reserved.
# All rights reserved.
-# $Id: makefile,v 1.5 2005-12-10 10:07:15 adam Exp $
+# $Id: makefile,v 1.27 2007-01-11 12:29:02 adam Exp $
-# MS NMAKE makefile for yp2
+# MS NMAKE makefile for metaproxy
# Parameters that we customize often.
DEBUG=0 # 0 for release, 1 for debug
# Parameters that we customize often.
DEBUG=0 # 0 for release, 1 for debug
+# Metaproxy version
+VERSION=1.0.7
+
# YAZ and YAZ++ directories
YAZ_DIR=..\..\yaz
# YAZ and YAZ++ directories
YAZ_DIR=..\..\yaz
-YAZPP_DIR=..\..\yaz++
+YAZPP_DIR=..\..\yazpp
# Boost
BOOST=\boost
# Boost
BOOST=\boost
-BOOSTVER=1_33
+BOOST_VERSION=1_33_1
+BOOST_TOOLSET=vc80 # vc80 for VS 2005, vc71 for 2003
+BOOST_MODEL=mt
# libxml2 + libxslt + associates
ZLIB_DIR=\zlib-1.2.3.win32
# libxml2 + libxslt + associates
ZLIB_DIR=\zlib-1.2.3.win32
-ICONV_DIR=\iconv-1.9.1.win32
-LIBXML2_DIR=\libxml2-2.6.20.win32
-LIBXSLT_DIR=\libxslt-1.1.14.win32
+ICONV_DIR=\iconv-1.9.2.win32
+LIBXML2_DIR=\libxml2-2.6.26.win32
+LIBXSLT_DIR=\libxslt-1.1.17.win32
# The targets
# The targets
@@
-27,12
+32,12
@@
default: all
all: dirs config yaz yazpp libxslt dll progs
all: dirs config yaz yazpp libxslt dll progs
-progs: ex_filter_frontend_net test_pipe
+progs: ex_filter_frontend_net test_pipe metaproxy
NSIS="c:\program files\nsis\makensis.exe"
nsis: all
NSIS="c:\program files\nsis\makensis.exe"
nsis: all
- $(NSIS) yp2.nsi
+ $(NSIS) metaproxy.nsi
# Directories
# The current directory is supposed to be something like
# Directories
# The current directory is supposed to be something like
@@
-43,55
+48,72
@@
INCLDIR=$(ROOTDIR)\include # our includes
LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
WINDIR=$(ROOTDIR)\win # all these Win make things
LIBDIR=$(ROOTDIR)\lib # We produce .lib, .exp etc there
BINDIR=$(ROOTDIR)\bin # We produce exes and dlls there
WINDIR=$(ROOTDIR)\win # all these Win make things
-OBJDIR=$(WINDIR)\obj # where we store intermediate files
SRCDIR=$(ROOTDIR)\src # for the case we move them under src
SRCDIR=$(ROOTDIR)\src # for the case we move them under src
+!if $(DEBUG)
+OBJDIR=$(WINDIR)\dobj # where we store intermediate files
+!else
+OBJDIR=$(WINDIR)\obj # where we store intermediate files
+!endif
+
TMPDIR=$(ROOTDIR)\win\tmp
TMP=$(TMPDIR)
TMPDIR=$(ROOTDIR)\win\tmp
TMP=$(TMPDIR)
+
##########################################################
############### Targets - what to make
###########################################################
##########################################################
############### Targets - what to make
###########################################################
-PROJECT_DLL=$(BINDIR)\yp2.dll
-PROJECT_IMPLIB=$(LIBDIR)\yp2.lib
+PROJECT_DLL=$(BINDIR)\metaproxy.dll
+PROJECT_IMPLIB=$(LIBDIR)\metaproxy.lib
EX_FILTER_FRONTEND_NET=$(BINDIR)\ex_filter_frontend_net.exe
EX_FILTER_FRONTEND_NET=$(BINDIR)\ex_filter_frontend_net.exe
+METAPROXY_PROG=$(BINDIR)\metaproxy.exe
TEST_PIPE=$(BINDIR)\test_pipe.exe
# shortcut names defined here
dll: $(PROJECT_DLL)
ex_filter_frontend_net: $(EX_FILTER_FRONTEND_NET)
TEST_PIPE=$(BINDIR)\test_pipe.exe
# shortcut names defined here
dll: $(PROJECT_DLL)
ex_filter_frontend_net: $(EX_FILTER_FRONTEND_NET)
+metaproxy: $(METAPROXY_PROG)
test_pipe: $(TEST_PIPE)
###########################################################
############### Compiler and linker options
###########################################################
test_pipe: $(TEST_PIPE)
###########################################################
############### Compiler and linker options
###########################################################
+!if $(DEBUG)
+YAZD=yazd
+YAZPPD=yazpp_1_d
+!else
+YAZD=yaz
+YAZPPD=yazpp_1
+!endif
+
# YAZ includes & libs
# YAZ includes & libs
-YAZ_LIB="$(YAZ_DIR)\lib\yaz.lib"
-YAZ_DEF=/DYAZ_USE_NEW_LOG=1 /I"$(YAZ_DIR)\include"
+YAZ_LIB="$(YAZ_DIR)\lib\$(YAZD).lib"
+YAZ_DEF=/DYAZ_HAVE_XML2=1 /DYAZ_HAVE_XSLT=1 /DYAZ_USE_NEW_LOG=1 /I"$(YAZ_DIR)\include"
# Copy yaz.dll to our bin
# Copy yaz.dll to our bin
-yaz: $(BINDIR)\yaz.dll
-$(BINDIR)\yaz.dll: $(YAZ_DIR)\bin\yaz.dll
- copy "$(YAZ_DIR)\bin\yaz.dll" $(BINDIR)
+yaz: $(BINDIR)\$(YAZD).dll
+$(BINDIR)\$(YAZD).dll: "$(YAZ_DIR)\bin\$(YAZD).dll"
+ copy "$(YAZ_DIR)\bin\$(YAZD).dll" $(BINDIR)
# YAZ++ includes & libs
# YAZ++ includes & libs
-YAZPP_LIB="$(YAZPP_DIR)\lib\yazpp.lib"
+YAZPP_LIB="$(YAZPP_DIR)\lib\$(YAZPPD).lib"
YAZPP_DEF=/I"$(YAZPP_DIR)\include"
# Copy yazpp.dll to our bin
YAZPP_DEF=/I"$(YAZPP_DIR)\include"
# Copy yazpp.dll to our bin
-yazpp: $(BINDIR)\yazpp.dll
-$(BINDIR)\yazpp.dll: $(YAZPP_DIR)\bin\yazpp.dll
- copy "$(YAZPP_DIR)\bin\yazpp.dll" $(BINDIR)
+yazpp: $(BINDIR)\$(YAZPPD).dll
+$(BINDIR)\$(YAZPPD).dll: "$(YAZPP_DIR)\bin\$(YAZPPD).dll"
+ copy "$(YAZPP_DIR)\bin\$(YAZPPD).dll" $(BINDIR)
# Copy libxslt and associates to our bin directory
libxslt: $(BINDIR)\libxslt.dll
# Copy libxslt and associates to our bin directory
libxslt: $(BINDIR)\libxslt.dll
-$(BINDIR)\libxslt.dll: $(LIBXSLT_DIR)\bin\libxslt.dll
- copy $(ICONV_DIR)\bin\iconv.dll $(BINDIR)
- copy $(LIBXML2_DIR)\bin\libxml2.dll $(BINDIR)
- copy $(LIBXSLT_DIR)\bin\libxslt.dll $(BINDIR)
+$(BINDIR)\libxslt.dll: "$(LIBXSLT_DIR)\bin\libxslt.dll"
+ copy "$(ICONV_DIR)\bin\iconv.dll" $(BINDIR)
+ copy "$(ZLIB_DIR)\bin\zlib1.dll" $(BINDIR)
+ copy "$(LIBXML2_DIR)\bin\libxml2.dll" $(BINDIR)
+ copy "$(LIBXSLT_DIR)\bin\libxslt.dll" $(BINDIR)
config: $(SRCDIR)\config.hpp
config: $(SRCDIR)\config.hpp
@@
-100,12
+122,18
@@
$(SRCDIR)\config.hpp:
# Boost
#
# Boost
#
-BOOST_DEF = /I"$(BOOST)\include\boost-$(BOOSTVER)"
+!if $(DEBUG)
+BOOST_LIB_SUFFIX=$(BOOST_TOOLSET)-$(BOOST_MODEL)-gd-$(BOOST_VERSION).lib
+!else
+BOOST_LIB_SUFFIX=$(BOOST_TOOLSET)-$(BOOST_MODEL)-$(BOOST_VERSION).lib
+!endif
+
+BOOST_DEF = /I"$(BOOST)\include\boost-$(BOOST_VERSION)"
BOOST_LIB = \
BOOST_LIB = \
- "$(BOOST)\lib\libboost_date_time-vc71-mt-$(BOOSTVER).lib" \
- "$(BOOST)\lib\libboost_program_options-vc71-mt-$(BOOSTVER).lib" \
- "$(BOOST)\lib\libboost_thread-vc71-mt-$(BOOSTVER).lib" \
- "$(BOOST)\lib\libboost_unit_test_framework-vc71-mt-$(BOOSTVER).lib"
+ "$(BOOST)\lib\libboost_date_time-$(BOOST_LIB_SUFFIX)" \
+ "$(BOOST)\lib\libboost_program_options-$(BOOST_LIB_SUFFIX)" \
+ "$(BOOST)\lib\libboost_thread-$(BOOST_LIB_SUFFIX)" \
+ "$(BOOST)\lib\libboost_unit_test_framework-$(BOOST_LIB_SUFFIX)"
LIBXSLT_DEF = \
LIBXSLT_DEF = \
@@
-119,14
+147,15
@@
LIBXSLT_LIB = \
"$(LIBXSLT_DIR)\lib\libxslt.lib"
COMMON_C_OPTIONS= \
"$(LIBXSLT_DIR)\lib\libxslt.lib"
COMMON_C_OPTIONS= \
- /nologo /W3 /GX /FD /c \
+ /nologo /W3 /EHsc /FD /c \
+ /D "_CRT_SECURE_NO_DEPRECATE" \
$(YAZ_DEF) \
$(YAZPP_DEF) \
$(BOOST_DEF) \
$(LIBXSLT_DEF) \
$(YAZ_DEF) \
$(YAZPP_DEF) \
$(BOOST_DEF) \
$(LIBXSLT_DEF) \
+ /D VERSION=\"$(VERSION)\" \
/D "_WINDOWS" \
/D "WIN32" \
/D "_WINDOWS" \
/D "WIN32" \
- /EHsc \
/FR"$(OBJDIR)\\" \
/Fo"$(OBJDIR)\\" \
/Fd"$(OBJDIR)\\" \
/FR"$(OBJDIR)\\" \
/Fo"$(OBJDIR)\\" \
/Fd"$(OBJDIR)\\" \
@@
-134,7
+163,7
@@
COMMON_C_OPTIONS= \
DEBUG_C_OPTIONS= \
/D "_DEBUG" \
DEBUG_C_OPTIONS= \
/D "_DEBUG" \
- /MDd /Od /YX /Zi /Gm
+ /MDd /Od /Zi /Gm
RELEASE_C_OPTIONS= \
/D "NDEBUG" \
RELEASE_C_OPTIONS= \
/D "NDEBUG" \
@@
-151,7
+180,6
@@
RELEASE_C_OPTIONS= \
# /MDd = Runtime library: Multithread DLL (debug)
# /Od = Disable optimising (debug)
# /O2 = Optimize for speed
# /MDd = Runtime library: Multithread DLL (debug)
# /Od = Disable optimising (debug)
# /O2 = Optimize for speed
-# /YX = Automatic use of precomipled headers
# /Gm = Minimal rebuild (some cpp class stuff)
# /Zi = Program database for debuggers
# /ZI = Pgm database with special "edit&continue" stuff - not available in C5
# /Gm = Minimal rebuild (some cpp class stuff)
# /Zi = Program database for debuggers
# /ZI = Pgm database with special "edit&continue" stuff - not available in C5
@@
-160,12
+188,11
@@
RELEASE_C_OPTIONS= \
### Linker options
LINK=link.exe
### Linker options
LINK=link.exe
-LINK_LIBS= kernel32.lib user32.lib gdi32.lib \
- advapi32.lib uuid.lib \
- wsock32.lib advapi32.lib \
- $(BOOST_LIB) \
- $(YAZ_LIB) $(YAZPP_LIB) $(ICONV_LIB) $(LIBXSLT_LIB) \
- $(BOOST_LIB)
+LINK_LIBS=kernel32.lib user32.lib gdi32.lib advapi32.lib uuid.lib \
+ wsock32.lib advapi32.lib \
+ $(BOOST_LIB) \
+ $(YAZ_LIB) $(YAZPP_LIB) $(ICONV_LIB) $(LIBXSLT_LIB) \
+ $(BOOST_LIB)
COMMON_LNK_OPTIONS= /nologo \
/subsystem:windows \
COMMON_LNK_OPTIONS= /nologo \
/subsystem:windows \
@@
-196,22
+223,40
@@
LNKOPT= $(COMMON_LNK_OPTIONS) $(RELEASE_LNK_OPTIONS)
###########################################################
PROJECT_DLL_OBJS = \
###########################################################
PROJECT_DLL_OBJS = \
- $(OBJDIR)\session.obj \
- $(OBJDIR)\router_chain.obj \
- $(OBJDIR)\router_flexml.obj \
+ $(OBJDIR)\factory_filter.obj \
+ $(OBJDIR)\factory_static.obj \
$(OBJDIR)\filter.obj \
$(OBJDIR)\filter.obj \
+ $(OBJDIR)\filter_auth_simple.obj \
$(OBJDIR)\filter_backend_test.obj \
$(OBJDIR)\filter_backend_test.obj \
+ $(OBJDIR)\filter_bounce.obj \
$(OBJDIR)\filter_frontend_net.obj \
$(OBJDIR)\filter_frontend_net.obj \
+ $(OBJDIR)\filter_http_file.obj \
+ $(OBJDIR)\filter_load_balance.obj \
$(OBJDIR)\filter_log.obj \
$(OBJDIR)\filter_log.obj \
- $(OBJDIR)\filter_session_shared.obj \
+ $(OBJDIR)\filter_multi.obj \
+ $(OBJDIR)\filter_query_rewrite.obj \
+ $(OBJDIR)\filter_record_transform.obj \
+ $(OBJDIR)\filter_session_shared.obj \
+ $(OBJDIR)\filter_sru_to_z3950.obj \
+ $(OBJDIR)\filter_template.obj \
$(OBJDIR)\filter_virt_db.obj \
$(OBJDIR)\filter_z3950_client.obj \
$(OBJDIR)\filter_virt_db.obj \
$(OBJDIR)\filter_z3950_client.obj \
- $(OBJDIR)\thread_pool_observer.obj \
+ $(OBJDIR)\filter_zeerex_explain.obj \
+ $(OBJDIR)\gduutil.obj \
+ $(OBJDIR)\origin.obj \
$(OBJDIR)\package.obj \
$(OBJDIR)\pipe.obj \
$(OBJDIR)\package.obj \
$(OBJDIR)\pipe.obj \
- $(OBJDIR)\util.obj
+ $(OBJDIR)\plainfile.obj \
+ $(OBJDIR)\router_chain.obj \
+ $(OBJDIR)\router_flexml.obj \
+ $(OBJDIR)\session.obj \
+ $(OBJDIR)\sru_util.obj \
+ $(OBJDIR)\thread_pool_observer.obj \
+ $(OBJDIR)\util.obj \
+ $(OBJDIR)\xmlutil.obj
EX_FILTER_FRONTEND_NET_OBJS = $(OBJDIR)\ex_filter_frontend_net.obj
EX_FILTER_FRONTEND_NET_OBJS = $(OBJDIR)\ex_filter_frontend_net.obj
+METAPROXY_OBJS = $(OBJDIR)\metaproxy_prog.obj
TEST_PIPE_OBJS = $(OBJDIR)\test_pipe.obj
###########################################################
TEST_PIPE_OBJS = $(OBJDIR)\test_pipe.obj
###########################################################
@@
-234,8
+279,8
@@
COMMON_RC_OPTIONS= /l 0x406 /i"$(ROOTDIR)"
DEBUG_RC_OPTIONS=/d "_DEBUG"
RELEASE_RC_OPTIONS=/d "NDEBUG"
DEBUG_RC_OPTIONS=/d "_DEBUG"
RELEASE_RC_OPTIONS=/d "NDEBUG"
-PROJECT_RES=$(OBJDIR)\yp2.res
-PROJECT_RC=$(WINDIR)\yp2.rc
+PROJECT_RES=$(OBJDIR)\metaproxy.res
+PROJECT_RC=$(WINDIR)\metaproxy.rc
!if $(DEBUG)
RSOPT=/d_DEBUG
!if $(DEBUG)
RSOPT=/d_DEBUG
@@
-251,29
+296,49
@@
$(PROJECT_RES): $(PROJECT_RC)
###########################################################
$(PROJECT_DLL) $(PROJECT_IMPLIB): "$(BINDIR)" $(PROJECT_DLL_OBJS)
###########################################################
$(PROJECT_DLL) $(PROJECT_IMPLIB): "$(BINDIR)" $(PROJECT_DLL_OBJS)
- @echo Linking $(PROJECT_DLL)
- $(LINK) $(LNKOPT) $(LINK_LIBS) $(DLL_LINK_OPTIONS) $(PROJECT_DLL_OBJS) /out:"$(PROJECT_DLL)" /implib:"$(PROJECT_IMPLIB)"
+ $(LINK) \
+ $(LNKOPT) \
+ $(LINK_LIBS) \
+ $(DLL_LINK_OPTIONS) \
+ $(PROJECT_DLL_OBJS) \
+ /out:"$(PROJECT_DLL)" \
+ /implib:"$(PROJECT_IMPLIB)"
$(EX_FILTER_FRONTEND_NET) : "$(BINDIR)" $(EX_FILTER_FRONTEND_NET_OBJS) $(PROJECT_IMPLIB)
$(EX_FILTER_FRONTEND_NET) : "$(BINDIR)" $(EX_FILTER_FRONTEND_NET_OBJS) $(PROJECT_IMPLIB)
- @echo Linking $(EX_FILTER_FRONTEND_NET)
- $(LINK) $(LNKOPT) $(PROG_LINK_OPTIONS) $(LINK_LIBS) $(PROJECT_DLL_OBJS) $(EX_FILTER_FRONTEND_NET_OBJS) /out:$(EX_FILTER_FRONTEND_NET)
+ $(LINK) \
+ $(LNKOPT) \
+ $(PROG_LINK_OPTIONS) \
+ $(LINK_LIBS) \
+ $(PROJECT_DLL_OBJS) \
+ $(EX_FILTER_FRONTEND_NET_OBJS) \
+ /out:$(EX_FILTER_FRONTEND_NET)
+
+$(METAPROXY_PROG) : "$(BINDIR)" $(METAPROXY_OBJS) $(PROJECT_IMPLIB)
+ $(LINK) \
+ $(LNKOPT) \
+ $(PROG_LINK_OPTIONS) \
+ $(LINK_LIBS) \
+ $(PROJECT_DLL_OBJS) \
+ $(METAPROXY_OBJS) \
+ /out:$(METAPROXY_PROG)
$(TEST_PIPE) : "$(BINDIR)" $(TEST_PIPE_OBJS) $(PROJECT_IMPLIB)
$(TEST_PIPE) : "$(BINDIR)" $(TEST_PIPE_OBJS) $(PROJECT_IMPLIB)
- @echo Linking $(TEST_PIPE)
- $(LINK) $(LNKOPT) $(PROG_LINK_OPTIONS) $(LINK_LIBS) $(TEST_PIPE_OBJS) $(PROJECT_DLL_OBJS) /out:$(TEST_PIPE)
+ $(LINK) \
+ $(LNKOPT) \
+ $(PROG_LINK_OPTIONS) \
+ $(LINK_LIBS) \
+ $(TEST_PIPE_OBJS) \
+ $(PROJECT_DLL_OBJS) \
+ /out:$(TEST_PIPE)
############## clean
clean:
-del $(BINDIR)\*.exe
-del $(BINDIR)\*.dll
-del $(TMPDIR)\*.
############## clean
clean:
-del $(BINDIR)\*.exe
-del $(BINDIR)\*.dll
-del $(TMPDIR)\*.
- -del $(LIBDIR)\*.MAP
-del $(LIBDIR)\*.LIB
-del $(OBJDIR)\*.OBJ
-del $(LIBDIR)\*.LIB
-del $(OBJDIR)\*.OBJ
-realclean: clean
- -del $(ZOOMDIR)\zoom.h
-
dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
$(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):
dirs: $(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR)
$(OBJDIR) $(WINDIR) $(LIBDIR) $(BINDIR) $(TMPDIR):