source: gsdl/trunk/runtime-src/src/protocol/win32.mak@ 19521

Last change on this file since 19521 was 19521, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

  • Property svn:executable set to *
File size: 2.6 KB
Line 
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
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
33COLSERVR_DIR = $(RUNTIME_DIR)\src\colservr
34
35
36GSDL_VC4 = 0
37DEBUG = 0
38DLL = 0
39DLLDEBUG = 0
40
41!IF $(DEBUG)
42CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
43!ELSE
44CXXFLAGS =
45!ENDIF
46
47!IF $(GSDL_VC4)
48CXXFLAGS = $(CXXFLAGS) -GX
49!ELSE
50CXXFLAGS = $(CXXFLAGS) -EHsc
51!ENDIF
52
53!IF $(DLL)
54CXXFLAGS = $(CXXFLAGS) -MD
55!ELSE
56!IF ($(DLLDEBUG))
57CXXFLAGS = $(CXXFLAGS) -MDd
58!ENDIF
59!ENDIF
60
61
62AR = lib
63CC = cl
64DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
65# Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
66INCLUDES = -I"$(GSDL_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COLSERVR_DIR)" -I"$(INDEXERS_DIR)\mgpp\text" \
67 -I"$(COMMON_PACKAGES_DIR)\windows\gdbm\gdbm"
68
69!IF $(GSDL_VC4)
70DEFS=$(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
71INCLUDES = $(INCLUDES) -I"$(COMMON_PACKAGES_DIR)\windows\stlport\stlport"
72!ENDIF
73
74
75COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
76
77
78.SUFFIXES:
79.SUFFIXES: .cpp .obj
80.cpp.obj:
81 $(COMPILE) $<
82
83
84SOURCES = \
85 nullproto.cpp \
86 recptproto.cpp \
87 recptprototools.cpp
88
89OBJECTS = \
90 nullproto.obj \
91 recptproto.obj \
92 recptprototools.obj
93
94LIBRARY = gsdlprotocol.lib
95
96
97# Default target: make gsdlprotocol.lib
98all: $(LIBRARY)
99
100gsdlprotocol.lib: $(OBJECTS)
101 if EXIST $(LIBRARY) del $(LIBRARY)
102 $(AR) -nologo /out:$(LIBRARY) $(OBJECTS)
103
104install:
105
106clean:
107 del *.obj
108 del $(LIBRARY)
Note: See TracBrowser for help on using the repository browser.