source: gsdl/trunk/runtime-src/src/colservr/win32.mak@ 18077

Last change on this file since 18077 was 18077, checked in by mdewsnip, 15 years ago

Modified makefiles to use new GDBM package (which reads both little-endian and big-endian files).

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