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

Last change on this file since 21697 was 21697, checked in by mdewsnip, 12 years ago

Added Windows makefile for runtime-src/src/oaiservr directory.

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