[15520] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # win32 makefile -- src/protocol
|
---|
| 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 |
|
---|
[15521] | 27 | GSDL_DIR = ..\..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)\indexers
|
---|
[15546] | 29 | PACKAGES_DIR = $(GSDL_DIR)\packages
|
---|
[15521] | 30 | COLSERVR_DIR = $(GSDL_DIR)\src\colservr
|
---|
[15520] | 31 |
|
---|
| 32 |
|
---|
| 33 | GSDL_VC4 = 0
|
---|
| 34 | DLL = 0
|
---|
| 35 | DLLDEBUG = 0
|
---|
[15546] | 36 | STLPATH = "$(PACKAGES_DIR)\windows\stlport\stlport"
|
---|
[15520] | 37 |
|
---|
| 38 |
|
---|
| 39 | !IF $(GSDL_VC4)
|
---|
| 40 | CPPFLAGS = -GX
|
---|
| 41 | !ELSE
|
---|
| 42 | CPPFLAGS = -EHsc
|
---|
| 43 | !ENDIF
|
---|
| 44 |
|
---|
| 45 | !IF $(DLL)
|
---|
| 46 | CPPFLAGS = $(CPPFLAGS) -MD
|
---|
| 47 | !ELSE
|
---|
| 48 | !IF ($(DLLDEBUG))
|
---|
| 49 | CPPFLAGS = $(CPPFLAGS) -MDd
|
---|
| 50 | !ENDIF
|
---|
| 51 | !ENDIF
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 | AR = lib
|
---|
| 55 | CC = cl
|
---|
| 56 | DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE
|
---|
| 57 | # Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
|
---|
[15524] | 58 | INCLUDES = -I"$(GSDL_DIR)" -I"$(GSDL_DIR)\lib" -I"$(COLSERVR_DIR)" -I"$(INDEXERS_DIR)\mgpp\text" \
|
---|
[15546] | 59 | -I"$(PACKAGES_DIR)\windows\gdbm\gdbm"
|
---|
[15520] | 60 |
|
---|
| 61 | !IF $(GSDL_VC4)
|
---|
| 62 | DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
|
---|
| 63 | INCLUDES = $(INCLUDES) -I$(STLPATH)
|
---|
| 64 | !ENDIF
|
---|
| 65 |
|
---|
| 66 |
|
---|
| 67 | COMPILE = $(CC) -nologo -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 68 |
|
---|
| 69 |
|
---|
| 70 | .SUFFIXES:
|
---|
| 71 | .SUFFIXES: .cpp .obj
|
---|
| 72 | .cpp.obj:
|
---|
| 73 | $(COMPILE) $<
|
---|
| 74 |
|
---|
| 75 |
|
---|
| 76 | SOURCES = \
|
---|
| 77 | nullproto.cpp \
|
---|
[15572] | 78 | recptproto.cpp \
|
---|
| 79 | recptprototools.cpp
|
---|
[15520] | 80 |
|
---|
| 81 | OBJECTS = \
|
---|
| 82 | nullproto.obj \
|
---|
[15572] | 83 | recptproto.obj \
|
---|
| 84 | recptprototools.obj
|
---|
[15525] | 85 |
|
---|
| 86 | LIBRARY = gsdlprotocol.lib
|
---|
[15520] | 87 |
|
---|
| 88 |
|
---|
| 89 | gsdlprotocol.lib: $(OBJECTS)
|
---|
| 90 | if EXIST gsdlprotocol.lib del gsdlprotocol.lib
|
---|
| 91 | $(AR) -nologo /out:gsdlprotocol.lib $(OBJECTS)
|
---|
| 92 |
|
---|
[15525] | 93 | all: $(LIBRARY)
|
---|
| 94 |
|
---|
| 95 | install: $(LIBRARY)
|
---|
| 96 |
|
---|
[15520] | 97 | clean:
|
---|
| 98 | del *.obj
|
---|
| 99 | del gsdlprotocol.lib
|
---|