source: main/trunk/greenstone2/runtime-src/src/protocol/win32.mak@ 21324

Last change on this file since 21324 was 21324, checked in by ak19, 14 years ago

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene)

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