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

Revision 15546, 4.8 KB (checked in by mdewsnip, 12 years ago)

Added a new "PACKAGE_DIRS" path value in the Makefiles to make paths a bit shorter.

  • 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
65CPP = @CXX@
66CPPFLAGS = @CXXFLAGS@
67DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DHAVE_CONFIG_H $(FASTCGI_DEFS) $(Z3950_DEFS)
68INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
69    -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mgpp/text \
70        -I$(PACKAGES_DIR)/expat/include $(FASTCGI_INCLUDES) $(Z3950_INCLUDES)
71INSTALL = @INSTALL@
72LDFLAGS = @LDFLAGS@
73LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) \
74    $(FASTCGI_LIBS) $(Z3950_LIBS)
75
76
77CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
78CPPLINK = $(CPP) $(LDFLAGS) -o $@
79
80
81.SUFFIXES:
82.SUFFIXES: .cpp .o
83.cpp.o:
84    $(CPPCOMPILE) $<
85
86
87SOURCES = \
88    action.cpp \
89    argdb.cpp \
90    authenaction.cpp \
91    browseaction.cpp \
92    browseactiontools.cpp \
93    browserclass.cpp \
94    browsetoolsclass.cpp \
95    cgiargs.cpp \
96    cgiutils.cpp \
97    cgiwrapper.cpp \
98    collectoraction.cpp \
99        converter.cpp \
100    datelistbrowserclass.cpp \
101    depositoraction.cpp \
102    documentaction.cpp \
103    extlinkaction.cpp \
104    formattools.cpp \
105    gtiaction.cpp \
106    highlighttext.cpp \
107    historydb.cpp \
108    hlistbrowserclass.cpp \
109    htmlbrowserclass.cpp \
110    htmlutils.cpp \
111    invbrowserclass.cpp \
112    librarymain.cpp \
113    maincfg.cpp \
114    pageaction.cpp \
115    pagedbrowserclass.cpp \
116    phindaction.cpp \
117    phindbrowserclass.cpp \
118    pingaction.cpp \
119    queryaction.cpp \
120    querytools.cpp \
121    receptionist.cpp \
122    recptprototools.cpp \
123    statusaction.cpp \
124    summarise.cpp \
125    tipaction.cpp \
126    userdb.cpp \
127    usersaction.cpp \
128    vlistbrowserclass.cpp \
129    wizardaction.cpp
130
131OBJECTS = \
132    action.o \
133    argdb.o \
134    authenaction.o \
135    browseaction.o \
136    browseactiontools.o \
137    browserclass.o \
138    browsetoolsclass.o \
139    cgiargs.o \
140    cgiutils.o \
141    cgiwrapper.o \
142    collectoraction.o \
143        converter.o \
144    datelistbrowserclass.o \
145    depositoraction.o \
146    documentaction.o \
147    extlinkaction.o \
148    formattools.o \
149    gtiaction.o \
150    highlighttext.o \
151    historydb.o \
152    hlistbrowserclass.o \
153    htmlbrowserclass.o \
154    htmlutils.o \
155    invbrowserclass.o \
156    librarymain.o \
157    maincfg.o \
158    pageaction.o \
159    pagedbrowserclass.o \
160    phindaction.o \
161    phindbrowserclass.o \
162    pingaction.o \
163    queryaction.o \
164    querytools.o \
165    receptionist.o \
166    recptprototools.o \
167    statusaction.o \
168    summarise.o \
169    tipaction.o \
170    userdb.o \
171    usersaction.o \
172    vlistbrowserclass.o \
173    wizardaction.o
174
175GSDL_LIBS = \
176    $(PROTOCOL_DIR)/gsdlprotocol.a \
177    $(COLSERVR_DIR)/gsdlcolservr.a \
178    $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
179    $(INDEXERS_DIR)/mg/lib/libmglib.a \
180    $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
181    $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
182    $(GSDL_DIR)/lib/gsdllib.a
183
184EXECUTABLE_OBJECTS = \
185    $(OBJECTS) \
186    $(GSDL_LIBS)
187
188EXECUTABLE = library
189
190
191library: $(EXECUTABLE_OBJECTS)
192    $(CPPLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
193
194all: $(EXECUTABLE)
195
196install: $(EXECUTABLE)
197    $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
198
199clean:
200    rm -f $(OBJECTS) $(EXECUTABLE)
201
202distclean:
203    rm -f $(OBJECTS) $(EXECUTABLE) Makefile
204
205depend:
206    makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.