root/gsdl/trunk/src/recpt/Makefile.in @ 15572

Revision 15572, 4.9 KB (checked in by mdewsnip, 12 years ago)

Moved recptprototools.cpp/h from src/recpt into src/protocol.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1###########################################################################
2#
3# Makefile -- src/recpt
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999-2008  The New Zealand Digital Library Project
9#
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
27GSDL_DIR = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29PACKAGES_DIR = $(GSDL_DIR)/packages
30COLSERVR_DIR = $(GSDL_DIR)/src/colservr
31PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
32Z3950_DIR = $(GSDL_DIR)/src/z3950
33
34
35ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
36ifeq ($(ENABLE_ACCENTFOLD), 1)
37ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
38else
39ACCENTFOLD_LIBS =
40endif
41
42USE_FASTCGI = @USE_FASTCGI@
43ifeq ($(USE_FASTCGI), 1)
44FASTCGI_DEFS = -DUSE_FASTCGI
45FASTCGI_INCLUDES = -I$(PACKAGES_DIR)/fcgi/include
46FASTCGI_LIBS = $(PACKAGES_DIR)/fcgi/libfcgi/libfcgi.a
47else
48FASTCGI_DEFS =
49FASTCGI_INCLUDES =
50FASTCGI_LIBS =
51endif
52
53USE_Z3950 = @USE_Z3950@
54ifeq ($(USE_Z3950), 1)
55Z3950_DEFS = -DUSE_Z3950
56Z3950_INCLUDES = -I$(Z3950_DIR)
57Z3950_LIBS = $(Z3950_DIR)/gsdlz3950.a $(PACKAGES_DIR)/yaz/lib/libyaz.a
58else
59Z3950_DEFS =
60Z3950_INCLUDES =
61Z3950_LIBS =
62endif
63
64
65CC = @CC@
66CFLAGS=@CFLAGS@ @COMPAT32BITFLAGS@
67CXX = @CXX@
68CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
69DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS) $(Z3950_DEFS)
70INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib \
71        -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
72    -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mgpp/text \
73        -I$(PACKAGES_DIR)/expat/include $(FASTCGI_INCLUDES) $(Z3950_INCLUDES)
74INSTALL = @INSTALL@
75LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
76LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
77    $(FASTCGI_LIBS) $(Z3950_LIBS)
78
79
80CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
81CXXLINK = $(CXX) $(LDFLAGS) -o $@
82
83
84.SUFFIXES:
85.SUFFIXES: .cpp .o
86.cpp.o:
87    $(CXXCOMPILE) $<
88
89
90SOURCES = \
91    action.cpp \
92    argdb.cpp \
93    authenaction.cpp \
94    browseaction.cpp \
95    browseactiontools.cpp \
96    browserclass.cpp \
97    browsetoolsclass.cpp \
98    cgiargs.cpp \
99    cgiutils.cpp \
100    cgiwrapper.cpp \
101    collectoraction.cpp \
102        converter.cpp \
103    datelistbrowserclass.cpp \
104    depositoraction.cpp \
105    documentaction.cpp \
106    extlinkaction.cpp \
107    formattools.cpp \
108    gtiaction.cpp \
109    highlighttext.cpp \
110    historydb.cpp \
111    hlistbrowserclass.cpp \
112    htmlbrowserclass.cpp \
113    htmlutils.cpp \
114    invbrowserclass.cpp \
115    librarymain.cpp \
116    maincfg.cpp \
117    pageaction.cpp \
118    pagedbrowserclass.cpp \
119    phindaction.cpp \
120    phindbrowserclass.cpp \
121    pingaction.cpp \
122    queryaction.cpp \
123    querytools.cpp \
124    receptionist.cpp \
125    statusaction.cpp \
126    summarise.cpp \
127    tipaction.cpp \
128    userdb.cpp \
129    usersaction.cpp \
130    vlistbrowserclass.cpp \
131    wizardaction.cpp
132
133OBJECTS = \
134    action.o \
135    argdb.o \
136    authenaction.o \
137    browseaction.o \
138    browseactiontools.o \
139    browserclass.o \
140    browsetoolsclass.o \
141    cgiargs.o \
142    cgiutils.o \
143    cgiwrapper.o \
144    collectoraction.o \
145        converter.o \
146    datelistbrowserclass.o \
147    depositoraction.o \
148    documentaction.o \
149    extlinkaction.o \
150    formattools.o \
151    gtiaction.o \
152    highlighttext.o \
153    historydb.o \
154    hlistbrowserclass.o \
155    htmlbrowserclass.o \
156    htmlutils.o \
157    invbrowserclass.o \
158    librarymain.o \
159    maincfg.o \
160    pageaction.o \
161    pagedbrowserclass.o \
162    phindaction.o \
163    phindbrowserclass.o \
164    pingaction.o \
165    queryaction.o \
166    querytools.o \
167    receptionist.o \
168    statusaction.o \
169    summarise.o \
170    tipaction.o \
171    userdb.o \
172    usersaction.o \
173    vlistbrowserclass.o \
174    wizardaction.o
175
176GSDL_LIBS = \
177    $(PROTOCOL_DIR)/gsdlprotocol.a \
178    $(COLSERVR_DIR)/gsdlcolservr.a \
179    $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
180    $(INDEXERS_DIR)/mg/lib/libmglib.a \
181    $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
182    $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
183    $(GSDL_DIR)/lib/gsdllib.a
184
185EXECUTABLE_OBJECTS = \
186    $(OBJECTS) \
187    $(GSDL_LIBS)
188
189EXECUTABLE = library
190
191
192library: $(EXECUTABLE_OBJECTS)
193    $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
194
195all: $(EXECUTABLE)
196
197install: $(EXECUTABLE)
198    $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
199
200clean:
201    rm -f $(OBJECTS) $(EXECUTABLE)
202
203distclean:
204    rm -f $(OBJECTS) $(EXECUTABLE) Makefile
205
206depend:
207    makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.