[15543] | 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 |
|
---|
| 27 | GSDL_DIR = ..\..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)\indexers
|
---|
[15546] | 29 | PACKAGES_DIR = $(GSDL_DIR)\packages
|
---|
[15543] | 30 | COLSERVR_DIR = $(GSDL_DIR)\src\colservr
|
---|
| 31 | PROTOCOL_DIR = $(GSDL_DIR)\src\protocol
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | GSDL_VC4 = 0
|
---|
| 35 | DLL = 0
|
---|
| 36 | DLLDEBUG = 0
|
---|
[15546] | 37 | STLPATH = "$(PACKAGES_DIR)\windows\stlport\stlport"
|
---|
[15543] | 38 |
|
---|
| 39 |
|
---|
| 40 | !IF $(GSDL_VC4)
|
---|
| 41 | CPPFLAGS = -GX
|
---|
| 42 | !ELSE
|
---|
| 43 | CPPFLAGS = -EHsc
|
---|
| 44 | !ENDIF
|
---|
| 45 |
|
---|
| 46 | !IF $(DLL)
|
---|
| 47 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
| 48 | !ELSE
|
---|
| 49 | !IF ($(DLLDEBUG))
|
---|
| 50 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
| 51 | !ENDIF
|
---|
| 52 | !ENDIF
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | AR = lib
|
---|
| 56 | CC = cl
|
---|
| 57 | DEFS = -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!
|
---|
| 59 | INCLUDES = -I"$(GSDL_DIR)" -I"$(GSDL_DIR)\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" \
|
---|
[15546] | 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"
|
---|
[15543] | 63 |
|
---|
| 64 | !IF $(GSDL_VC4)
|
---|
| 65 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 66 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
| 67 | !ENDIF
|
---|
| 68 |
|
---|
| 69 |
|
---|
| 70 | COMPILE = $(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 |
|
---|
| 83 | LIBRARY_SOURCES = \
|
---|
| 84 | yaz_zclient.c \
|
---|
| 85 | z3950proto.cpp \
|
---|
| 86 | z3950proxy.cpp \
|
---|
| 87 | zparse.tab.c \
|
---|
| 88 | zparse.yy.c
|
---|
| 89 |
|
---|
| 90 | LIBRARY_OBJECTS = \
|
---|
| 91 | yaz_zclient.obj \
|
---|
| 92 | z3950proto.obj \
|
---|
| 93 | z3950proxy.obj \
|
---|
| 94 | zparse.tab.obj \
|
---|
| 95 | zparse.yy.obj
|
---|
| 96 |
|
---|
| 97 | LIBRARY = gsdlz3950.lib
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | gsdlz3950.lib: $(LIBRARY_OBJECTS)
|
---|
| 101 | if EXIST gsdlz3950.lib del gsdlz3950.lib
|
---|
[15546] | 102 | $(AR) -nologo /out:gsdlz3950.lib $(LIBRARY_OBJECTS) $(PACKAGES_DIR)/yaz/yaz-2.1.4/win/obj/tabcomplete.obj
|
---|
[15543] | 103 |
|
---|
| 104 | all: $(LIBRARY)
|
---|
| 105 |
|
---|
| 106 | install: $(LIBRARY)
|
---|
| 107 |
|
---|
| 108 | clean:
|
---|
| 109 | del *.obj
|
---|
| 110 | del gsdlz3950.lib
|
---|