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
|
---|
29 | COLSERVR_DIR = $(GSDL_DIR)\src\colservr
|
---|
30 | PROTOCOL_DIR = $(GSDL_DIR)\src\protocol
|
---|
31 |
|
---|
32 |
|
---|
33 | GSDL_VC4 = 0
|
---|
34 | DLL = 0
|
---|
35 | DLLDEBUG = 0
|
---|
36 | STLPATH = "$(GSDL_DIR)\packages\windows\stlport\stlport"
|
---|
37 |
|
---|
38 |
|
---|
39 | !IF $(GSDL_VC4)
|
---|
40 | CPPFLAGS = -GX
|
---|
41 | !ELSE
|
---|
42 | CPPFLAGS = -EHsc
|
---|
43 | !ENDIF
|
---|
44 |
|
---|
45 | !IF $(DLL)
|
---|
46 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
47 | !ELSE
|
---|
48 | !IF ($(DLLDEBUG))
|
---|
49 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
50 | !ENDIF
|
---|
51 | !ENDIF
|
---|
52 |
|
---|
53 |
|
---|
54 | AR = lib
|
---|
55 | CC = cl
|
---|
56 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
|
---|
57 | # Do NOT add the "recpt" directory here: the z39.50 code should be independent of the receptionist!
|
---|
58 | INCLUDES = -I"$(GSDL_DIR)" -I"$(GSDL_DIR)\lib" -I"$(COLSERVR_DIR)" -I"$(PROTOCOL_DIR)" \
|
---|
59 | -I"$(INDEXERS_DIR)\mgpp\text" -I"$(GSDL_DIR)\packages\yaz\yaz-2.1.4\include" \
|
---|
60 | -I"$(GSDL_DIR)\packages\yaz\yaz-2.1.4\client" -I"$(GSDL_DIR)\packages\d2m" \
|
---|
61 | -I"$(GSDL_DIR)\packages\windows\gdbm\gdbm"
|
---|
62 |
|
---|
63 | !IF $(GSDL_VC4)
|
---|
64 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
65 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
66 | !ENDIF
|
---|
67 |
|
---|
68 |
|
---|
69 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
70 |
|
---|
71 |
|
---|
72 | .SUFFIXES:
|
---|
73 | .SUFFIXES: .c .obj
|
---|
74 | .c.obj:
|
---|
75 | $(COMPILE) $<
|
---|
76 |
|
---|
77 | .SUFFIXES: .cpp .obj
|
---|
78 | .cpp.obj:
|
---|
79 | $(COMPILE) $<
|
---|
80 |
|
---|
81 |
|
---|
82 | LIBRARY_SOURCES = \
|
---|
83 | yaz_zclient.c \
|
---|
84 | z3950proto.cpp \
|
---|
85 | z3950proxy.cpp \
|
---|
86 | zparse.tab.c \
|
---|
87 | zparse.yy.c
|
---|
88 |
|
---|
89 | LIBRARY_OBJECTS = \
|
---|
90 | yaz_zclient.obj \
|
---|
91 | z3950proto.obj \
|
---|
92 | z3950proxy.obj \
|
---|
93 | zparse.tab.obj \
|
---|
94 | zparse.yy.obj
|
---|
95 |
|
---|
96 | LIBRARY = gsdlz3950.lib
|
---|
97 |
|
---|
98 |
|
---|
99 | gsdlz3950.lib: $(LIBRARY_OBJECTS)
|
---|
100 | if EXIST gsdlz3950.lib del gsdlz3950.lib
|
---|
101 | $(AR) -nologo /out:gsdlz3950.lib $(LIBRARY_OBJECTS) $(GSDL_DIR)/packages/yaz/yaz-2.1.4/win/obj/tabcomplete.obj
|
---|
102 |
|
---|
103 | all: $(LIBRARY)
|
---|
104 |
|
---|
105 | install: $(LIBRARY)
|
---|
106 |
|
---|
107 | clean:
|
---|
108 | del *.obj
|
---|
109 | del gsdlz3950.lib
|
---|