1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # win32 makefile -- src/colservr
|
---|
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 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 | GSDLHOME = ..\..
|
---|
28 | GSDL_VC4 = 0
|
---|
29 | DLL = 0
|
---|
30 | DLLDEBUG = 0
|
---|
31 | USE_Z3950=0
|
---|
32 | STLPATH = "$(GSDLHOME)\packages\windows\stlport\stlport"
|
---|
33 |
|
---|
34 | AR = lib
|
---|
35 | CC = cl
|
---|
36 |
|
---|
37 | !IF $(GSDL_VC4)
|
---|
38 | CPPFLAGS = -GX
|
---|
39 | !ELSE
|
---|
40 | CPPFLAGS = -EHsc
|
---|
41 | !ENDIF
|
---|
42 |
|
---|
43 | !IF $(DLL)
|
---|
44 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
45 | !ELSE
|
---|
46 | !IF ($(DLLDEBUG))
|
---|
47 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
48 | !ENDIF
|
---|
49 | !ENDIF
|
---|
50 |
|
---|
51 | LDFLAGS =
|
---|
52 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
|
---|
53 | INCLUDES = -I"$(GSDLHOME)" -I"$(GSDLHOME)\lib" -I"$(GSDLHOME)\src\colservr" \
|
---|
54 | -I"$(GSDLHOME)\src\recpt" -I"$(GSDLHOME)\indexers\mg" \
|
---|
55 | -I"$(GSDLHOME)\indexers\mg\lib" -I"$(GSDLHOME)\indexers\mg\src\text" \
|
---|
56 | -I"$(GSDLHOME)\packages\windows\gdbm\gdbm" \
|
---|
57 | -I"$(GSDLHOME)\indexers\mgpp\lib" -I"$(GSDLHOME)\indexers\mgpp\text" \
|
---|
58 | -I"$(GSDLHOME)\packages\windows\expat\expat"
|
---|
59 |
|
---|
60 | !IF $(GSDL_VC4)
|
---|
61 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
62 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
63 | !ENDIF
|
---|
64 |
|
---|
65 | LIBS =
|
---|
66 |
|
---|
67 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
68 | LINK = $(CC) -nologo $(LDFLAGS)
|
---|
69 |
|
---|
70 | .SUFFIXES:
|
---|
71 | .SUFFIXES: .c .obj
|
---|
72 | .c.obj:
|
---|
73 | $(COMPILE) $<
|
---|
74 |
|
---|
75 | .SUFFIXES: .cpp .obj
|
---|
76 | .cpp.obj:
|
---|
77 | $(COMPILE) $<
|
---|
78 |
|
---|
79 | !IF $(USE_Z3950)
|
---|
80 | INCLUDES = $(INCLUDES) -I"$(GSDLHOME)\packages\yaz\yaz-2.1.4\include" -I"$(GSDLHOME)\packages\d2m"
|
---|
81 | Z3950HEADERS =
|
---|
82 | Z3950SOURCES = z3950parser.cpp z3950explain.cpp z3950_to_gsdl.cpp \
|
---|
83 | z3950server.cpp read-grs.cpp
|
---|
84 | Z3950OBJECTS = z3950parser.obj z3950explain.obj z3950_to_gsdl.obj \
|
---|
85 | z3950server.obj read-grs.obj
|
---|
86 | Z3950LIB = gsdlz3950.lib
|
---|
87 | !ELSE
|
---|
88 | Z3950HEADERS =
|
---|
89 | Z3950SOURCES =
|
---|
90 | Z3950OBJECTS =
|
---|
91 | Z3950LIB =
|
---|
92 | !ENDIF
|
---|
93 |
|
---|
94 | HEADERS = mgq.h search.h mgsearch.h querycache.h queryinfo.h collectserver.h \
|
---|
95 | colservrconfig.h maptools.h filter.h source.h browsefilter.h \
|
---|
96 | queryfilter.h mgqueryfilter.h mggdbmsource.h phrasesearch.h \
|
---|
97 | phrasequeryfilter.h collectset.h mgppsearch.h mgppqueryfilter.h \
|
---|
98 | lucenegdbmsource.h lucenequeryfilter.h lucenesearch.h \
|
---|
99 | expat_resultset.h expat_document.h gdbmsource.h
|
---|
100 |
|
---|
101 | SOURCES = mgq.c search.cpp mgsearch.cpp querycache.cpp queryinfo.cpp \
|
---|
102 | collectserver.cpp colservrconfig.cpp maptools.cpp filter.cpp \
|
---|
103 | source.cpp browsefilter.cpp queryfilter.cpp mgqueryfilter.cpp \
|
---|
104 | mggdbmsource.cpp phrasesearch.cpp phrasequeryfilter.cpp \
|
---|
105 | collectset.cpp mgppsearch.cpp mgppqueryfilter.cpp \
|
---|
106 | lucenegdbmsource.cpp lucenequeryfilter.cpp lucenesearch.cpp \
|
---|
107 | expat_resultset.cpp expat_document.cpp gdbmsource.cpp
|
---|
108 |
|
---|
109 | OBJECTS = mgq.obj search.obj mgsearch.obj querycache.obj queryinfo.obj \
|
---|
110 | collectserver.obj colservrconfig.obj maptools.obj filter.obj \
|
---|
111 | source.obj browsefilter.obj queryfilter.obj mgqueryfilter.obj \
|
---|
112 | mggdbmsource.obj phrasesearch.obj phrasequeryfilter.obj \
|
---|
113 | collectset.obj mgppsearch.obj mgppqueryfilter.obj \
|
---|
114 | lucenegdbmsource.obj lucenequeryfilter.obj lucenesearch.obj \
|
---|
115 | expat_resultset.obj expat_document.obj gdbmsource.obj
|
---|
116 |
|
---|
117 |
|
---|
118 | all : gsdlcolservr.lib $(Z3950LIB)
|
---|
119 |
|
---|
120 | gsdlcolservr.lib : $(OBJECTS)
|
---|
121 | if EXIST gsdlcolservr.lib del gsdlcolservr.lib
|
---|
122 | $(AR) -nologo /out:gsdlcolservr.lib $(OBJECTS)
|
---|
123 |
|
---|
124 | gsdlz3950.lib : $(Z3950OBJECTS)
|
---|
125 | if EXIST gsdlz3950.lib del gsdlz3950.lib
|
---|
126 | $(AR) -nologo /out:gsdlz3950.lib $(Z3950OBJECTS)
|
---|
127 | clean:
|
---|
128 | del *.obj
|
---|
129 | del gsdlcolservr.lib
|
---|
130 | del gsdlz3950.lib
|
---|
131 |
|
---|
132 | install:
|
---|