source: gsdl/trunk/src/colservr/win32.mak@ 15757

Last change on this file since 15757 was 15592, checked in by mdewsnip, 16 years ago

(Adding new DB support) Renamed mggdbmsource to mgsource and lucenegdbmsource to lucenesource, to reflect that these classes are no longer GDBM-dependent.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
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-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
27GSDL_DIR = ..\..
28INDEXERS_DIR = $(GSDL_DIR)\indexers
29PACKAGES_DIR = $(GSDL_DIR)\packages
30
31
32GSDL_VC4 = 0
33DLL = 0
34DLLDEBUG = 0
35STLPATH = "$(PACKAGES_DIR)\windows\stlport\stlport"
36
37
38!IF $(GSDL_VC4)
39CPPFLAGS = -GX
40!ELSE
41CPPFLAGS = -EHsc
42!ENDIF
43
44!IF $(DLL)
45CPPFLAGS = $(CPPFLAGS) -MD
46!ELSE
47!IF ($(DLLDEBUG))
48CPPFLAGS = $(CPPFLAGS) -MDd
49!ENDIF
50!ENDIF
51
52
53AR = lib
54CC = cl
55DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
56# Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
57INCLUDES = -I"$(GSDL_DIR)" -I"$(GSDL_DIR)\lib" \
58 -I"$(INDEXERS_DIR)\mg" -I"$(INDEXERS_DIR)\mg\lib" -I"$(INDEXERS_DIR)\mg\src\text" \
59 -I"$(INDEXERS_DIR)\mgpp\lib" -I"$(INDEXERS_DIR)\mgpp\text" \
60 -I"$(PACKAGES_DIR)\windows\expat\expat" -I"$(PACKAGES_DIR)\windows\gdbm\gdbm"
61
62!IF $(GSDL_VC4)
63DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
64INCLUDES = $(INCLUDES) -I$(STLPATH)
65!ENDIF
66
67
68COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
69
70
71.SUFFIXES:
72.SUFFIXES: .c .obj
73.c.obj:
74 $(COMPILE) $<
75
76.SUFFIXES: .cpp .obj
77.cpp.obj:
78 $(COMPILE) $<
79
80
81SOURCES = \
82 browsefilter.cpp \
83 collectserver.cpp \
84 collectset.cpp \
85 colservrconfig.cpp \
86 comtypes.cpp \
87 expat_document.cpp \
88 expat_resultset.cpp \
89 filter.cpp \
90 lucenequeryfilter.cpp \
91 lucenesearch.cpp \
92 lucenesource.cpp \
93 maptools.cpp \
94 mgq.c \
95 mgqueryfilter.cpp \
96 mgsearch.cpp \
97 mgsource.cpp \
98 mgppqueryfilter.cpp \
99 mgppsearch.cpp \
100 phrasequeryfilter.cpp \
101 phrasesearch.cpp \
102 querycache.cpp \
103 queryfilter.cpp \
104 queryinfo.cpp \
105 search.cpp \
106 source.cpp
107
108OBJECTS = \
109 browsefilter.obj \
110 collectserver.obj \
111 collectset.obj \
112 colservrconfig.obj \
113 comtypes.obj \
114 expat_document.obj \
115 expat_resultset.obj \
116 filter.obj \
117 lucenequeryfilter.obj \
118 lucenesearch.obj \
119 lucenesource.obj \
120 maptools.obj \
121 mgq.obj \
122 mgqueryfilter.obj \
123 mgsearch.obj \
124 mgsource.obj \
125 mgppqueryfilter.obj \
126 mgppsearch.obj \
127 phrasequeryfilter.obj \
128 phrasesearch.obj \
129 querycache.obj \
130 queryfilter.obj \
131 queryinfo.obj \
132 search.obj \
133 source.obj
134
135LIBRARY = gsdlcolservr.lib
136
137
138# Default target: make gsdlcolservr.lib
139all: $(LIBRARY)
140
141gsdlcolservr.lib: $(OBJECTS)
142 if EXIST $(LIBRARY) del $(LIBRARY)
143 $(AR) -nologo /out:$(LIBRARY) $(OBJECTS)
144
145install:
146
147clean:
148 del *.obj
149 del $(LIBRARY)
Note: See TracBrowser for help on using the repository browser.