source: main/trunk/gs2-core/runtime-src/src/colservr/win32.mak@ 21699

Last change on this file since 21699 was 21699, checked in by mdewsnip, 12 years ago

Improvements to win32.mak files to always include paths in quotes.

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