[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
|
---|
[15546] | 29 | PACKAGES_DIR = $(GSDL_DIR)\packages
|
---|
[15522] | 30 |
|
---|
| 31 |
|
---|
[11256] | 32 | GSDL_VC4 = 0
|
---|
[7060] | 33 | DLL = 0
|
---|
| 34 | DLLDEBUG = 0
|
---|
[15546] | 35 | STLPATH = "$(PACKAGES_DIR)\windows\stlport\stlport"
|
---|
[743] | 36 |
|
---|
[7060] | 37 |
|
---|
[11256] | 38 | !IF $(GSDL_VC4)
|
---|
[3055] | 39 | CPPFLAGS = -GX
|
---|
[11256] | 40 | !ELSE
|
---|
| 41 | CPPFLAGS = -EHsc
|
---|
| 42 | !ENDIF
|
---|
| 43 |
|
---|
[7060] | 44 | !IF $(DLL)
|
---|
| 45 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
| 46 | !ELSE
|
---|
| 47 | !IF ($(DLLDEBUG))
|
---|
| 48 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
| 49 | !ENDIF
|
---|
| 50 | !ENDIF
|
---|
| 51 |
|
---|
[15519] | 52 |
|
---|
| 53 | AR = lib
|
---|
| 54 | CC = cl
|
---|
[11253] | 55 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
|
---|
[15522] | 56 | # Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist!
|
---|
| 57 | INCLUDES = -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" \
|
---|
[15546] | 60 | -I"$(PACKAGES_DIR)\windows\expat\expat" -I"$(PACKAGES_DIR)\windows\gdbm\gdbm"
|
---|
[2626] | 61 |
|
---|
[11257] | 62 | !IF $(GSDL_VC4)
|
---|
[2338] | 63 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 64 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
| 65 | !ENDIF
|
---|
[743] | 66 |
|
---|
| 67 |
|
---|
[11253] | 68 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
[743] | 69 |
|
---|
[15519] | 70 |
|
---|
[743] | 71 | .SUFFIXES:
|
---|
| 72 | .SUFFIXES: .c .obj
|
---|
| 73 | .c.obj:
|
---|
| 74 | $(COMPILE) $<
|
---|
| 75 |
|
---|
| 76 | .SUFFIXES: .cpp .obj
|
---|
| 77 | .cpp.obj:
|
---|
| 78 | $(COMPILE) $<
|
---|
| 79 |
|
---|
[10438] | 80 |
|
---|
[15519] | 81 | SOURCES = \
|
---|
| 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 | gdbmsource.cpp \
|
---|
| 91 | lucenegdbmsource.cpp \
|
---|
| 92 | lucenequeryfilter.cpp \
|
---|
| 93 | lucenesearch.cpp \
|
---|
| 94 | maptools.cpp \
|
---|
| 95 | mggdbmsource.cpp \
|
---|
| 96 | mgq.c \
|
---|
| 97 | mgqueryfilter.cpp \
|
---|
| 98 | mgsearch.cpp \
|
---|
| 99 | mgppqueryfilter.cpp \
|
---|
| 100 | mgppsearch.cpp \
|
---|
| 101 | phrasequeryfilter.cpp \
|
---|
| 102 | phrasesearch.cpp \
|
---|
| 103 | querycache.cpp \
|
---|
| 104 | queryfilter.cpp \
|
---|
| 105 | queryinfo.cpp \
|
---|
| 106 | search.cpp \
|
---|
| 107 | source.cpp
|
---|
[743] | 108 |
|
---|
[15519] | 109 | OBJECTS = \
|
---|
| 110 | browsefilter.obj \
|
---|
| 111 | collectserver.obj \
|
---|
| 112 | collectset.obj \
|
---|
| 113 | colservrconfig.obj \
|
---|
| 114 | comtypes.obj \
|
---|
| 115 | expat_document.obj \
|
---|
| 116 | expat_resultset.obj \
|
---|
| 117 | filter.obj \
|
---|
| 118 | gdbmsource.obj \
|
---|
| 119 | lucenegdbmsource.obj \
|
---|
| 120 | lucenequeryfilter.obj \
|
---|
| 121 | lucenesearch.obj \
|
---|
| 122 | maptools.obj \
|
---|
| 123 | mggdbmsource.obj \
|
---|
| 124 | mgq.obj \
|
---|
| 125 | mgqueryfilter.obj \
|
---|
| 126 | mgsearch.obj \
|
---|
| 127 | mgppqueryfilter.obj \
|
---|
| 128 | mgppsearch.obj \
|
---|
| 129 | phrasequeryfilter.obj \
|
---|
| 130 | phrasesearch.obj \
|
---|
| 131 | querycache.obj \
|
---|
| 132 | queryfilter.obj \
|
---|
| 133 | queryinfo.obj \
|
---|
| 134 | search.obj \
|
---|
| 135 | source.obj
|
---|
[743] | 136 |
|
---|
[15523] | 137 | LIBRARY = gsdlcolservr.lib
|
---|
[743] | 138 |
|
---|
[15523] | 139 |
|
---|
[15580] | 140 | # Default target: make gsdlcolservr.lib
|
---|
| 141 | all: $(LIBRARY)
|
---|
| 142 |
|
---|
[15519] | 143 | gsdlcolservr.lib: $(OBJECTS)
|
---|
[15580] | 144 | if EXIST $(LIBRARY) del $(LIBRARY)
|
---|
| 145 | $(AR) -nologo /out:$(LIBRARY) $(OBJECTS)
|
---|
[2338] | 146 |
|
---|
[15580] | 147 | install:
|
---|
[15523] | 148 |
|
---|
[743] | 149 | clean:
|
---|
| 150 | del *.obj
|
---|
[15580] | 151 | del $(LIBRARY)
|
---|