source: main/trunk/gs2-core/runtime-src/src/recpt/win32.mak@ 21695

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

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

File size: 3.2 KB
Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for runtime-src\src\recpt
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 = library.cgi
31
32# Program: library.cgi
33LIBRARY_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)\common-src\packages\windows\crypt\crypt
38
39# Objects for library.cgi
40LIBRARY_CGI_OBJECTS = \
41 action.obj \
42 argdb.obj \
43 authenaction.obj \
44 browseaction.obj \
45 browseactiontools.obj \
46 browserclass.obj \
47 browsetoolsclass.obj \
48 cgiargs.obj \
49 cgiutils.obj \
50 cgiwrapper.obj \
51 collectoraction.obj \
52 configaction.obj \
53 converter.obj \
54 datelistbrowserclass.obj \
55 depositoraction.obj \
56 documentaction.obj \
57 dynamicclassifieraction.obj \
58 extlinkaction.obj \
59 formattools.obj \
60 gtiaction.obj \
61 highlighttext.obj \
62 historydb.obj \
63 hlistbrowserclass.obj \
64 htmlbrowserclass.obj \
65 htmlutils.obj \
66 invbrowserclass.obj \
67 librarymain.obj \
68 maincfg.obj \
69 pageaction.obj \
70 pagedbrowserclass.obj \
71 phindaction.obj \
72 phindbrowserclass.obj \
73 pingaction.obj \
74 queryaction.obj \
75 querytools.obj \
76 receptionist.obj \
77 statusaction.obj \
78 string_pool.obj \
79 summarise.obj \
80 tipaction.obj \
81 userdb.obj \
82 usersaction.obj \
83 vlistbrowserclass.obj \
84 wizardaction.obj
85
86LIBRARY_CGI_LDADD = \
87 $(GSDLHOME)\runtime-src\src\protocol\gsdlprotocol.lib \
88 $(GSDLHOME)\runtime-src\src\colservr\gsdlcolservr.lib \
89 $(GSDLHOME)\common-src\src\lib\gsdllib.lib \
90 $(GSDLHOME)\common-src\packages\windows\crypt\crypt\crypt.lib
91
92
93# Option: SQLite support
94!IF $(USE_SQLITE)
95LIBRARY_CGI_LDADD = $(LIBRARY_CGI_LDADD) $(GSDLHOME)\common-src\packages\sqlite\lib\sqlite3.lib
96!ENDIF
97
98
99COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBRARY_CGI_CPPFLAGS)
100LINK = cl -nologo -Fe"$@"
101
102.SUFFIXES:
103.SUFFIXES: .cpp .obj
104
105.cpp.obj:
106 $(COMPILE) $<
107
108
109library.cgi: $(LIBRARY_CGI_OBJECTS) $(LIBRARY_CGI_LDADD)
110 $(LINK) $(LIBRARY_CGI_OBJECTS) $(LIBRARY_CGI_LDADD)
111
112all: $(CGIBIN_PROGRAMS)
113
114install: $(CGIBIN_PROGRAMS)
115 copy $(CGIBIN_PROGRAMS) $(CGIBIN_DIR)
116
117distclean:
118 del *.obj $(CGIBIN_PROGRAMS) win32.mak
119
120clean:
121 del *.obj $(CGIBIN_PROGRAMS)
Note: See TracBrowser for help on using the repository browser.