root/gsdl/trunk/src/colservr/win32.mak @ 15523

Revision 15523, 3.4 KB (checked in by mdewsnip, 12 years ago)

More consistency improvements.

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