source: main/trunk/gs2-core/runtime-src/src/oaiservr/win32.mak@ 21700

Last change on this file since 21700 was 21700, checked in by mdewsnip, 13 years ago

Minor change for consistency with Linux makefile.

File size: 2.8 KB
Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for runtime-src\src\oaiservr
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
28GSDL_DIR = $(GSDLHOME)
29
30
31# Programs compiled and their install directories
32CGIBIN_DIR = "$(GSDL_DIR)\cgi-bin"
33CGIBIN_PROGRAMS = oaiserver.cgi
34
35# Program: oaiserver.cgi
36OAISERVER_CGI_CPPFLAGS = \
37 -I"$(GSDL_DIR)\common-src\src\lib" \
38 -I"$(GSDL_DIR)\runtime-src\src\colservr" \
39 -I"$(GSDL_DIR)\runtime-src\src\protocol" \
40 -I"$(GSDL_DIR)\runtime-src\src\recpt"
41
42# Objects for oaiserver.cgi
43OAISERVER_CGI_OBJECTS = \
44 "$(GSDL_DIR)\runtime-src\src\recpt\cgiargs.obj" \
45 "$(GSDL_DIR)\runtime-src\src\recpt\cgiutils.obj" \
46 "$(GSDL_DIR)\runtime-src\src\recpt\htmlutils.obj" \
47 abstractlistaction.obj \
48 dublincore.obj \
49 qualified_dublincore.obj \
50 identifyaction.obj \
51 listidsaction.obj \
52 listrecsaction.obj \
53 listsetsaction.obj \
54 metaformat.obj \
55 metaformatsaction.obj \
56 oaiaction.obj \
57 oaiargs.obj \
58 oaiconfig.obj \
59 oaidispatcher.obj \
60 oaimain.obj \
61 oaitools.obj \
62 recordaction.obj \
63 resumptiontoken.obj \
64 rfc1807.obj
65
66OAISERVER_CGI_LDADD = \
67 "$(GSDL_DIR)\runtime-src\src\protocol\gsdlprotocol.lib" \
68 "$(GSDL_DIR)\runtime-src\src\colservr\gsdlcolservr.lib" \
69 "$(GSDL_DIR)\common-src\src\lib\gsdllib.lib"
70
71
72# Option: SQLite support
73!IF $(USE_SQLITE)
74OAISERVER_CGI_LDADD = $(OAISERVER_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\sqlite\lib\sqlite3.lib"
75!ENDIF
76
77
78COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(OAISERVER_CGI_CPPFLAGS)
79LINK = cl -nologo -Fe"$@"
80
81.SUFFIXES:
82.SUFFIXES: .cpp .obj
83
84{}.cpp{}.obj:
85 $(COMPILE) $<
86
87
88oaiserver.cgi: $(OAISERVER_CGI_OBJECTS) $(OAISERVER_CGI_LDADD)
89 $(LINK) $(OAISERVER_CGI_OBJECTS) $(OAISERVER_CGI_LDADD)
90
91all: $(CGIBIN_PROGRAMS)
92
93install: $(CGIBIN_PROGRAMS)
94 copy $(CGIBIN_PROGRAMS) $(CGIBIN_DIR)
95
96distclean:
97 del *.obj $(CGIBIN_PROGRAMS) win32.mak
98
99clean:
100 del *.obj $(CGIBIN_PROGRAMS)
Note: See TracBrowser for help on using the repository browser.