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

Last change on this file since 21701 was 21701, checked in by mdewsnip, 14 years ago

Need to link in expat library to library.cgi and oaiserver.cgi, when Lucene is enabled.

File size: 3.0 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: Lucene support
73!IF $(ENABLE_LUCENE)
74OAISERVER_CGI_LDADD = $(OAISERVER_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\windows\expat\expat\libexpat.lib"
75!ENDIF
76
77# Option: SQLite support
78!IF $(USE_SQLITE)
79OAISERVER_CGI_LDADD = $(OAISERVER_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\sqlite\lib\sqlite3.lib"
80!ENDIF
81
82
83COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(OAISERVER_CGI_CPPFLAGS)
84LINK = cl -nologo -Fe"$@"
85
86.SUFFIXES:
87.SUFFIXES: .cpp .obj
88
89{}.cpp{}.obj:
90 $(COMPILE) $<
91
92
93oaiserver.cgi: $(OAISERVER_CGI_OBJECTS) $(OAISERVER_CGI_LDADD)
94 $(LINK) $(OAISERVER_CGI_OBJECTS) $(OAISERVER_CGI_LDADD)
95
96all: $(CGIBIN_PROGRAMS)
97
98install: $(CGIBIN_PROGRAMS)
99 copy $(CGIBIN_PROGRAMS) $(CGIBIN_DIR)
100
101distclean:
102 del *.obj $(CGIBIN_PROGRAMS) win32.mak
103
104clean:
105 del *.obj $(CGIBIN_PROGRAMS)
Note: See TracBrowser for help on using the repository browser.