root/gsdl/trunk/src/protocol/win32.mak @ 15521

Revision 15521, 2.3 KB (checked in by mdewsnip, 12 years ago)

Fixed a couple of problems with the Windows makefile.

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