[743] | 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 | #
|
---|
[15522] | 8 | # Copyright (C) 1999-2008 The New Zealand Digital Library Project
|
---|
[743] | 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 |
|
---|
[15522] | 27 | GSDL_DIR = ..\..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)\indexers
|
---|
| 29 |
|
---|
| 30 |
|
---|
[11256] | 31 | GSDL_VC4 = 0
|
---|
[7060] | 32 | DLL = 0
|
---|
| 33 | DLLDEBUG = 0
|
---|
[15522] | 34 | STLPATH = "$(GSDL_DIR)\packages\windows\stlport\stlport"
|
---|
[743] | 35 |
|
---|
[7060] | 36 |
|
---|
[11256] | 37 | !IF $(GSDL_VC4)
|
---|
[3055] | 38 | CPPFLAGS = -GX
|
---|
[11256] | 39 | !ELSE
|
---|
| 40 | CPPFLAGS = -EHsc
|
---|
| 41 | !ENDIF
|
---|
| 42 |
|
---|
[7060] | 43 | !IF $(DLL)
|
---|
| 44 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
| 45 | !ELSE
|
---|
| 46 | !IF ($(DLLDEBUG))
|
---|
| 47 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
| 48 | !ENDIF
|
---|
| 49 | !ENDIF
|
---|
| 50 |
|
---|
[15519] | 51 |
|
---|
| 52 | AR = lib
|
---|
| 53 | CC = cl
|
---|
[11253] | 54 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
|
---|
[15522] | 55 | # Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
|
---|
| 56 | INCLUDES = -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" \
|
---|
[15523] | 59 | -I"$(GSDL_DIR)\packages\windows\expat\expat" -I"$(GSDL_DIR)\packages\windows\gdbm\gdbm"
|
---|
[2626] | 60 |
|
---|
[11257] | 61 | !IF $(GSDL_VC4)
|
---|
[2338] | 62 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 63 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
| 64 | !ENDIF
|
---|
[743] | 65 |
|
---|
| 66 |
|
---|
[11253] | 67 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
[743] | 68 |
|
---|
[15519] | 69 |
|
---|
[743] | 70 | .SUFFIXES:
|
---|
| 71 | .SUFFIXES: .c .obj
|
---|
| 72 | .c.obj:
|
---|
| 73 | $(COMPILE) $<
|
---|
| 74 |
|
---|
| 75 | .SUFFIXES: .cpp .obj
|
---|
| 76 | .cpp.obj:
|
---|
| 77 | $(COMPILE) $<
|
---|
| 78 |
|
---|
[10438] | 79 |
|
---|
[15519] | 80 | SOURCES = \
|
---|
| 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
|
---|
[743] | 107 |
|
---|
[15519] | 108 | OBJECTS = \
|
---|
| 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
|
---|
[743] | 135 |
|
---|
[15523] | 136 | LIBRARY = gsdlcolservr.lib
|
---|
[743] | 137 |
|
---|
[15523] | 138 |
|
---|
[15519] | 139 | gsdlcolservr.lib: $(OBJECTS)
|
---|
[2338] | 140 | if EXIST gsdlcolservr.lib del gsdlcolservr.lib
|
---|
[11253] | 141 | $(AR) -nologo /out:gsdlcolservr.lib $(OBJECTS)
|
---|
[2338] | 142 |
|
---|
[15523] | 143 | all: $(LIBRARY)
|
---|
| 144 |
|
---|
| 145 | install: $(LIBRARY)
|
---|
| 146 |
|
---|
[743] | 147 | clean:
|
---|
| 148 | del *.obj
|
---|
[2338] | 149 | del gsdlcolservr.lib
|
---|