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