1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # win32.mak -- Windows Makefile for runtime-src\src\colservr
|
---|
4 | #
|
---|
5 | # A component of the Greenstone digital library software
|
---|
6 | # from the New Zealand Digital Library Project at the
|
---|
7 | # University of Waikato, New Zealand.
|
---|
8 | #
|
---|
9 | # Copyright (C) 1999-2010 The New Zealand Digital Library Project
|
---|
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 |
|
---|
28 | # Libraries compiled
|
---|
29 | LIBRARIES = gsdlcolservr.lib
|
---|
30 |
|
---|
31 | # Library: gsdlcolservr.lib
|
---|
32 | # Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
|
---|
33 | LIBCOLSERVR_CPPFLAGS = \
|
---|
34 | -I$(GSDLHOME)\common-src\src\lib
|
---|
35 |
|
---|
36 | LIBCOLSERVR_OBJECTS = \
|
---|
37 | browsefilter.obj \
|
---|
38 | collectserver.obj \
|
---|
39 | collectset.obj \
|
---|
40 | colservrconfig.obj \
|
---|
41 | comtypes.obj \
|
---|
42 | expat_document.obj \
|
---|
43 | expat_resultset.obj \
|
---|
44 | filter.obj \
|
---|
45 | lucenequeryfilter.obj \
|
---|
46 | lucenesearch.obj \
|
---|
47 | lucenesource.obj \
|
---|
48 | maptools.obj \
|
---|
49 | phrasesearch.obj \
|
---|
50 | querycache.obj \
|
---|
51 | queryfilter.obj \
|
---|
52 | queryinfo.obj \
|
---|
53 | search.obj \
|
---|
54 | source.obj \
|
---|
55 | sqlbrowsefilter.obj
|
---|
56 |
|
---|
57 |
|
---|
58 | # Option: Lucene support
|
---|
59 | !IF $(ENABLE_LUCENE)
|
---|
60 | LIBCOLSERVR_CPPFLAGS = -DENABLE_LUCENE $(LIBCOLSERVR_CPPFLAGS) -I"$(GSDLHOME)\common-src\packages\windows\expat\expat"
|
---|
61 | !ENDIF
|
---|
62 |
|
---|
63 | # Option: SQLite support
|
---|
64 | !IF $(USE_SQLITE)
|
---|
65 | LIBCOLSERVR_CPPFLAGS = -DUSE_SQLITE $(LIBCOLSERVR_CPPFLAGS) -I"$(GSDLHOME)\common-src\packages\sqlite\include"
|
---|
66 | !ENDIF
|
---|
67 |
|
---|
68 |
|
---|
69 | COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBCOLSERVR_CPPFLAGS)
|
---|
70 | LINK = cl -nologo -Fe"$@"
|
---|
71 |
|
---|
72 | .SUFFIXES:
|
---|
73 | .SUFFIXES: .cpp .obj
|
---|
74 |
|
---|
75 | .cpp.obj:
|
---|
76 | $(COMPILE) $<
|
---|
77 |
|
---|
78 |
|
---|
79 | gsdlcolservr.lib: $(LIBCOLSERVR_OBJECTS)
|
---|
80 | if EXIST gsdlcolservr.lib del gsdlcolservr.lib
|
---|
81 | lib -nologo /out:gsdlcolservr.lib $(LIBCOLSERVR_OBJECTS)
|
---|
82 |
|
---|
83 | all: $(LIBRARIES)
|
---|
84 |
|
---|
85 | install: $(LIBRARIES)
|
---|
86 |
|
---|
87 | distclean:
|
---|
88 | del *.obj $(LIBRARIES) win32.mak
|
---|
89 |
|
---|
90 | clean:
|
---|
91 | del *.obj $(LIBRARIES)
|
---|