1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # win32.mak -- Windows Makefile for runtime-src\src\protocol
|
---|
4 | #
|
---|
5 | # A component of the Greenstone digital library software
|
---|
6 | # from the New Zealand Digital Library Project at the
|
---|
7 | # University of Waikato, New Zealand.
|
---|
8 | #
|
---|
9 | # Copyright (C) 1999-2010 The New Zealand Digital Library Project
|
---|
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 |
|
---|
27 |
|
---|
28 | GSDL_DIR = $(GSDLHOME)
|
---|
29 |
|
---|
30 |
|
---|
31 | # Libraries compiled
|
---|
32 | LIBRARIES = gsdlprotocol.lib
|
---|
33 |
|
---|
34 | # Library: gsdlprotocol.lib
|
---|
35 | # Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
|
---|
36 | LIBPROTOCOL_CPPFLAGS = \
|
---|
37 | -I"$(GSDL_DIR)\common-src\src\lib" \
|
---|
38 | -I"$(GSDL_DIR)\runtime-src\src\colservr"
|
---|
39 |
|
---|
40 | LIBPROTOCOL_OBJECTS = \
|
---|
41 | nullproto.obj \
|
---|
42 | recptproto.obj \
|
---|
43 | recptprototools.obj
|
---|
44 |
|
---|
45 |
|
---|
46 | COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBPROTOCOL_CPPFLAGS)
|
---|
47 | LINK = cl -nologo -Fe"$@"
|
---|
48 |
|
---|
49 | .SUFFIXES:
|
---|
50 | .SUFFIXES: .cpp .obj
|
---|
51 |
|
---|
52 | .cpp.obj:
|
---|
53 | $(COMPILE) $<
|
---|
54 |
|
---|
55 |
|
---|
56 | gsdlprotocol.lib: $(LIBPROTOCOL_OBJECTS)
|
---|
57 | if EXIST gsdlprotocol.lib del gsdlprotocol.lib
|
---|
58 | lib -nologo /out:gsdlprotocol.lib $(LIBPROTOCOL_OBJECTS)
|
---|
59 |
|
---|
60 | all: $(LIBRARIES)
|
---|
61 |
|
---|
62 | install: $(LIBRARIES)
|
---|
63 |
|
---|
64 | distclean:
|
---|
65 | del *.obj $(LIBRARIES) win32.mak
|
---|
66 |
|
---|
67 | clean:
|
---|
68 | del *.obj $(LIBRARIES)
|
---|