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 | GSDL_DIR = $(GSDLHOME)
|
---|
29 |
|
---|
30 |
|
---|
31 | # Programs compiled and their install directories
|
---|
32 | CGIBIN_DIR = "$(GSDL_DIR)\cgi-bin"
|
---|
33 | CGIBIN_PROGRAMS = library.cgi
|
---|
34 |
|
---|
35 | # Program: library.cgi
|
---|
36 | LIBRARY_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
|
---|
43 | LIBRARY_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 |
|
---|
89 | LIBRARY_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: Lucene support
|
---|
97 | !IF $(ENABLE_LUCENE)
|
---|
98 | LIBRARY_CGI_LDADD = $(LIBRARY_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\windows\expat\expat\libexpat.lib"
|
---|
99 | !ENDIF
|
---|
100 |
|
---|
101 | # Option: SQLite support
|
---|
102 | !IF $(USE_SQLITE)
|
---|
103 | LIBRARY_CGI_LDADD = $(LIBRARY_CGI_LDADD) "$(GSDL_DIR)\common-src\packages\sqlite\lib\sqlite3.lib"
|
---|
104 | !ENDIF
|
---|
105 |
|
---|
106 |
|
---|
107 | COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBRARY_CGI_CPPFLAGS)
|
---|
108 | LINK = cl -nologo -Fe"$@"
|
---|
109 |
|
---|
110 | .SUFFIXES:
|
---|
111 | .SUFFIXES: .cpp .obj
|
---|
112 |
|
---|
113 | .cpp.obj:
|
---|
114 | $(COMPILE) $<
|
---|
115 |
|
---|
116 |
|
---|
117 | library.cgi: $(LIBRARY_CGI_OBJECTS) $(LIBRARY_CGI_LDADD)
|
---|
118 | $(LINK) $(LIBRARY_CGI_OBJECTS) $(LIBRARY_CGI_LDADD)
|
---|
119 |
|
---|
120 | all: $(CGIBIN_PROGRAMS)
|
---|
121 |
|
---|
122 | install: $(CGIBIN_PROGRAMS)
|
---|
123 | copy $(CGIBIN_PROGRAMS) $(CGIBIN_DIR)
|
---|
124 |
|
---|
125 | distclean:
|
---|
126 | del *.obj $(CGIBIN_PROGRAMS) win32.mak
|
---|
127 |
|
---|
128 | clean:
|
---|
129 | del *.obj $(CGIBIN_PROGRAMS)
|
---|