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

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

Improvements to win32.mak files to always include paths in quotes.

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