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

Last change on this file since 16574 was 16574, checked in by davidb, 16 years ago

Adjustments to Windows makes file for new common-src, build-src and runtime-src file structure

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