source: tags/gsdl-2_22-distribution/niupepa/src/recpt/Makefile.in@ 1202

Last change on this file since 1202 was 1202, checked in by (none), 24 years ago

This commit was manufactured by cvs2svn to create tag
'gsdl-2_22-distribution'.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.9 KB
Line 
1###########################################################################
2#
3# Makefile -- Makefile for niupepalibrary
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
30
31AR = ar
32CC = @CC@
33CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
34DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -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 = @LIBS@
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 = niupepadocaction.h niupepapagedbrowserclass.h \
67 niupepabrowsetools.h niupepavlistbrowserclass.h \
68 niupepahlistbrowserclass.h
69
70SOURCES = niupepalibrarymain.cpp niupepadocaction.cpp \
71 niupepapagedbrowserclass.cpp niupepabrowsetools.cpp \
72 niupepavlistbrowserclass.cpp niupepahlistbrowserclass.cpp
73
74OBJECTS = niupepalibrarymain.o niupepadocaction.o \
75 niupepapagedbrowserclass.o niupepabrowsetools.o \
76 niupepavlistbrowserclass.o niupepahlistbrowserclass.o
77
78EXEC = niupepalibrary
79
80all : $(EXEC)
81
82install: $(EXEC)
83 install -m 755 -s $(EXEC) $(GD)/cgi-bin/$(EXEC)
84
85distclean:
86 rm -f $(OBJECTS) $(EXEC) Makefile
87
88clean:
89 rm -f $(OBJECTS) $(EXEC)
90
91depend:
92 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
93
94
95# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
96
97
98NIUPEPALIBRARY_OBJS = $(OBJECTS) \
99 $(MAINRECPTDIR)/querytools.o \
100 $(MAINRECPTDIR)/browsetools.o \
101 $(MAINRECPTDIR)/browserclass.o \
102 $(MAINRECPTDIR)/vlistbrowserclass.o \
103 $(MAINRECPTDIR)/hlistbrowserclass.o \
104 $(MAINRECPTDIR)/datelistbrowserclass.o \
105 $(MAINRECPTDIR)/invbrowserclass.o \
106 $(MAINRECPTDIR)/pagedbrowserclass.o \
107 $(MAINRECPTDIR)/htmlbrowserclass.o \
108 $(MAINRECPTDIR)/receptionist.o \
109 $(MAINRECPTDIR)/recptconfig.o \
110 $(MAINRECPTDIR)/cgiwrapper.o \
111 $(MAINRECPTDIR)/cgiargs.o \
112 $(MAINRECPTDIR)/action.o \
113 $(MAINRECPTDIR)/converter.o \
114 $(MAINRECPTDIR)/cgiutils.o \
115 $(MAINRECPTDIR)/OIDtools.o \
116 $(MAINRECPTDIR)/htmlgen.o \
117 $(MAINRECPTDIR)/statusaction.o \
118 $(MAINRECPTDIR)/pageaction.o \
119 $(MAINRECPTDIR)/comtypes.o \
120 $(MAINRECPTDIR)/recptproto.o \
121 $(MAINRECPTDIR)/pingaction.o \
122 $(MAINRECPTDIR)/queryaction.o \
123 $(MAINRECPTDIR)/documentaction.o \
124 $(MAINRECPTDIR)/htmlutils.o \
125 $(MAINRECPTDIR)/nullproto.o \
126 $(MAINRECPTDIR)/infodbclass.o \
127 $(MAINRECPTDIR)/formattools.o \
128 $(MAINRECPTDIR)/tipaction.o \
129 $(MAINRECPTDIR)/authenaction.o \
130 $(MAINRECPTDIR)/usersaction.o \
131 $(MAINRECPTDIR)/userdb.o \
132 $(MAINRECPTDIR)/delhistoryaction.o \
133 $(MAINRECPTDIR)/historydb.o \
134 $(MAINCOLSERVRDIR)/mgq.o \
135 $(MAINCOLSERVRDIR)/querycache.o \
136 $(MAINCOLSERVRDIR)/queryinfo.o \
137 $(MAINCOLSERVRDIR)/collectserver.o \
138 $(MAINCOLSERVRDIR)/colservrconfig.o \
139 $(MAINCOLSERVRDIR)/maptools.o \
140 $(MAINCOLSERVRDIR)/filter.o \
141 $(MAINCOLSERVRDIR)/source.o \
142 $(MAINCOLSERVRDIR)/browsefilter.o \
143 $(MAINCOLSERVRDIR)/queryfilter.o \
144 $(MAINCOLSERVRDIR)/phrasequeryfilter.o \
145 $(MAINCOLSERVRDIR)/phrasesearch.o \
146 $(MAINCOLSERVRDIR)/mggdbmsource.o \
147 $(MAINCOLSERVRDIR)/mgsearch.o \
148 $(GD)/lib/gsdllib.a \
149 $(GD)/packages/mg/src/text/libtextin.a \
150 $(GD)/packages/mg/lib/libmg.a
151
152ifneq ($(USE_FASTCGI), 1)
153NIUPEPALIB_OBJS = $(NIUPEPALIBRARY_OBJS)
154else
155NIUPEPALIB_OBJS = $(NIUPEPALIBRARY_OBJS) $(GD)/packages/fcgi/libfcgi/libfcgi.a
156endif
157
158niupepalibrary: $(NIUPEPALIB_OBJS)
159 $(LINK) $(NIUPEPALIB_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.