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