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

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

Removed the unnecessary C compilation stuff.

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