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

Revision 15491, 4.7 KB (checked in by mdewsnip, 12 years ago)

Fix for compilation with fastcgi on (not tested yet).

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