root/gsdl/trunk/src/z3950/win32.mak @ 15546

Revision 15546, 2.8 KB (checked in by mdewsnip, 12 years ago)

Added a new "PACKAGE_DIRS" path value in the Makefiles to make paths a bit shorter.

  • Property svn:executable set to *
Line 
1###########################################################################
2#
3# win32 makefile -- src/z3950
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999-2008  The New Zealand Digital Library Project
9#
10#
11# This program is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24#
25###########################################################################
26
27GSDL_DIR = ..\..
28INDEXERS_DIR = $(GSDL_DIR)\indexers
29PACKAGES_DIR = $(GSDL_DIR)\packages
30COLSERVR_DIR = $(GSDL_DIR)\src\colservr
31PROTOCOL_DIR = $(GSDL_DIR)\src\protocol
32
33
34GSDL_VC4 = 0
35DLL = 0
36DLLDEBUG = 0
37STLPATH = "$(PACKAGES_DIR)\windows\stlport\stlport"
38
39
40!IF $(GSDL_VC4)
41CPPFLAGS = -GX
42!ELSE
43CPPFLAGS = -EHsc
44!ENDIF
45
46!IF $(DLL)
47CPPFLAGS = $(CPPFLAGS) -MD
48!ELSE
49!IF ($(DLLDEBUG))
50CPPFLAGS = $(CPPFLAGS) -MDd
51!ENDIF
52!ENDIF
53
54
55AR = lib
56CC = cl
57DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
58# Do NOT add the "recpt" directory here: the z39.50 code should be independent of the receptionist!
59INCLUDES = -I"$(GSDL_DIR)" -I"$(GSDL_DIR)\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" \
60    -I"$(INDEXERS_DIR)\mgpp\text" -I"$(PACKAGES_DIR)\yaz\yaz-2.1.4\include" \
61    -I"$(PACKAGES_DIR)\yaz\yaz-2.1.4\client" -I"$(PACKAGES_DIR)\d2m" \
62    -I"$(PACKAGES_DIR)\windows\gdbm\gdbm"
63
64!IF $(GSDL_VC4)
65DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
66INCLUDES = $(INCLUDES) -I$(STLPATH)
67!ENDIF
68
69
70COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
71
72
73.SUFFIXES:
74.SUFFIXES: .c .obj
75.c.obj:
76    $(COMPILE) $<
77
78.SUFFIXES: .cpp .obj
79.cpp.obj:
80    $(COMPILE) $<
81
82
83LIBRARY_SOURCES = \
84    yaz_zclient.c \
85    z3950proto.cpp \
86    z3950proxy.cpp \
87    zparse.tab.c \
88    zparse.yy.c
89
90LIBRARY_OBJECTS = \
91    yaz_zclient.obj \
92    z3950proto.obj \
93    z3950proxy.obj \
94    zparse.tab.obj \
95    zparse.yy.obj
96
97LIBRARY = gsdlz3950.lib
98
99
100gsdlz3950.lib: $(LIBRARY_OBJECTS)
101    if EXIST gsdlz3950.lib del gsdlz3950.lib
102    $(AR) -nologo /out:gsdlz3950.lib $(LIBRARY_OBJECTS) $(PACKAGES_DIR)/yaz/yaz-2.1.4/win/obj/tabcomplete.obj
103
104all: $(LIBRARY)
105
106install: $(LIBRARY)
107
108clean:
109    del *.obj
110    del gsdlz3950.lib
Note: See TracBrowser for help on using the browser.