root/trunk/cstr/src/recpt/Makefile.in @ 911

Revision 911, 4.6 KB (checked in by sjboddie, 20 years ago)

updated cstr

  • Property svn:keywords set to Author Date Id Revision
Line 
1###########################################################################
2#
3# Makefile -- Makefile for cstrlibrary
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 New Zealand Digital Library Project
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23#
24###########################################################################
25
26GD = ../../../..
27MAINRECPTDIR = $(GD)/src/recpt
28MAINCOLSERVRDIR = $(GD)/src/colservr
29
30AR = ar
31CC = @CC@
32CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
33DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER \
34       -D_LITTLE_ENDIAN -DGSDLSERVER @DEFS@
35
36USE_FASTCGI = @USE_FASTCGI@
37ifneq ($(USE_FASTCGI), 1)
38INCLUDES = -I$(MAINRECPTDIR) -I$(MAINCOLSERVRDIR) -I$(GD)/lib \
39       -I$(GD)/packages/mg -I$(GD)/packages/mg/lib -I$(GD)/packages/mg/src/text
40else
41INCLUDES = -I$(MAINRECPTDIR) -I$(MAINCOLSERVRDIR) -I$(GD)/lib \
42       -I$(GD)/packages/mg -I$(GD)/packages/mg/lib -I$(GD)/packages/mg/src/text \
43           -I$(GD)/packages/fcgi/include
44endif
45
46RANLIB = @RANLIB@
47LDFLAGS = @LDFLAGS@
48LIBS = -lgdbm -lstdc++ -lm -lcrypt
49
50GSDLOS = @gsdlos@
51
52
53COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
54LINK = $(CC) $(LDFLAGS) -o $@
55
56.SUFFIXES:
57.SUFFIXES: .c .o
58.c.o:
59    $(COMPILE) $<
60
61.SUFFIXES: .cpp .o
62.cpp.o:
63    $(COMPILE) $<
64
65
66HEADERS = cstrdocaction.h cstrbrowsetools.h cstrpagedbrowserclass.h
67
68SOURCES = cstrlibrarymain.cpp cstrdocaction.cpp cstrbrowsetools.cpp \
69      cstrpagedbrowserclass.cpp
70
71
72OBJECTS = cstrlibrarymain.o cstrdocaction.o cstrbrowsetools.o \
73      cstrpagedbrowserclass.o
74
75
76EXEC    = cstrlibrary
77
78all : $(EXEC)
79
80install:
81    cp $(EXEC) $(GD)/fast-cgi-bin/$(EXEC); \
82    strip $(GD)/fast-cgi-bin/$(EXEC)
83
84clean:
85    rm -f $(OBJECTS) $(EXEC)
86
87depend:
88    makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
89
90
91# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
92
93
94CSTRLIBRARY_OBJS = $(OBJECTS) \
95    $(MAINRECPTDIR)/querytools.o \
96    $(MAINRECPTDIR)/browsetools.o \
97    $(MAINRECPTDIR)/browserclass.o \
98    $(MAINRECPTDIR)/vlistbrowserclass.o \
99    $(MAINRECPTDIR)/hlistbrowserclass.o \
100    $(MAINRECPTDIR)/datelistbrowserclass.o \
101    $(MAINRECPTDIR)/invbrowserclass.o \
102    $(MAINRECPTDIR)/pagedbrowserclass.o \
103    $(MAINRECPTDIR)/htmlbrowserclass.o \
104    $(MAINRECPTDIR)/receptionist.o \
105    $(MAINRECPTDIR)/recptconfig.o \
106    $(MAINRECPTDIR)/cgiwrapper.o \
107    $(MAINRECPTDIR)/cgiargs.o \
108    $(MAINRECPTDIR)/action.o \
109    $(MAINRECPTDIR)/converter.o \
110    $(MAINRECPTDIR)/cgiutils.o \
111    $(MAINRECPTDIR)/OIDtools.o \
112    $(MAINRECPTDIR)/htmlgen.o \
113    $(MAINRECPTDIR)/statusaction.o \
114    $(MAINRECPTDIR)/pageaction.o \
115    $(MAINRECPTDIR)/comtypes.o \
116    $(MAINRECPTDIR)/recptproto.o \
117    $(MAINRECPTDIR)/pingaction.o \
118    $(MAINRECPTDIR)/queryaction.o \
119    $(MAINRECPTDIR)/documentaction.o \
120    $(MAINRECPTDIR)/htmlutils.o \
121    $(MAINRECPTDIR)/nullproto.o \
122    $(MAINRECPTDIR)/infodbclass.o \
123    $(MAINRECPTDIR)/formattools.o \
124    $(MAINRECPTDIR)/tipaction.o \
125    $(MAINRECPTDIR)/authenaction.o \
126    $(MAINRECPTDIR)/usersaction.o \
127    $(MAINRECPTDIR)/userdb.o \
128    $(MAINCOLSERVRDIR)/mgq.o \
129    $(MAINCOLSERVRDIR)/querycache.o \
130    $(MAINCOLSERVRDIR)/queryinfo.o \
131    $(MAINCOLSERVRDIR)/collectserver.o \
132    $(MAINCOLSERVRDIR)/colservrconfig.o \
133    $(MAINCOLSERVRDIR)/maptools.o \
134    $(MAINCOLSERVRDIR)/filter.o \
135    $(MAINCOLSERVRDIR)/source.o \
136    $(MAINCOLSERVRDIR)/browsefilter.o \
137    $(MAINCOLSERVRDIR)/queryfilter.o \
138    $(MAINCOLSERVRDIR)/phrasequeryfilter.o \
139    $(MAINCOLSERVRDIR)/phrasesearch.o \
140    $(MAINCOLSERVRDIR)/mggdbmsource.o \
141    $(MAINCOLSERVRDIR)/mgsearch.o \
142    $(GD)/lib/gsdllib.a  \
143    $(GD)/packages/mg/src/text/libtextin.a \
144    $(GD)/packages/mg/lib/libmg.a
145
146ifneq ($(USE_FASTCGI), 1)
147CSTRLIB_OBJS = $(CSTRLIBRARY_OBJS)
148else
149CSTRLIB_OBJS = $(CSTRLIBRARY_OBJS) $(GD)/packages/fcgi/libfcgi/libfcgi.a
150endif
151
152cstrlibrary: $(CSTRLIB_OBJS)
153    $(LINK) $(CSTRLIB_OBJS) $(LIBS)
Note: See TracBrowser for help on using the browser.