source: main/tags/2.30/gsdl/src/colservr/Makefile.in@ 24218

Last change on this file since 24218 was 1776, checked in by sjboddie, 24 years ago

Removed GSDLUSAGELOG and GSDLSERVER pre-processor definitions which
(I think) aren't used anywhere

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1###########################################################################
2#
3# Makefile -- src/colservr
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 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
27
28AR = ar
29CC = @CC@
30#CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
31CCFLAGS = @CFLAGS@
32
33USE_FASTCGI = @USE_FASTCGI@
34USE_MGPP = @USE_MGPP@
35ifneq ($(USE_FASTCGI), 1)
36DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM @DEFS@
37
38CGI_INCLUDES =
39
40else
41DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DUSE_FASTCGI @DEFS@
42
43CGI_INCLUDES = -I../../packages/fcgi/include
44endif
45
46ifneq ($(USE_MGPP), 1)
47MG_INCLUDES = -I../../packages/mg -I../../packages/mg/lib \
48 -I../../packages/mg/src/text
49MG_HEADERS = mgq.h mgsearch.h mgqueryfilter.h
50
51MG_SOURCES = mgq.c mgsearch.cpp mgqueryfilter.cpp
52
53MG_OBJECTS = mgq.o mgsearch.o mgqueryfilter.o
54MGPP_OBJECTS = mgppsearch.o mgppqueryfilter.o
55
56else
57MG_INCLUDES = -I../mgpp/text -I../mgpp/lib
58
59MG_HEADERS = mgppsearch.h mgppqueryfilter.h
60
61MG_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
62
63MG_OBJECTS = mgppsearch.o mgppqueryfilter.o
64
65endif
66
67INCLUDES = -I../.. -I../../lib -I ../recpt \
68 $(CGI_INCLUDES) $(MG_INCLUDES)
69
70RANLIB = @RANLIB@
71LDFLAGS = @LDFLAGS@
72LIBS = @LIBS@
73
74GSDLOS = @gsdlos@
75
76
77COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
78LINK = $(CC) $(LDFLAGS) -o $@
79
80.SUFFIXES:
81.SUFFIXES: .c .o
82.c.o:
83 $(COMPILE) $<
84
85.SUFFIXES: .cpp .o
86.cpp.o:
87 $(COMPILE) $<
88
89HEADERS = search.h querycache.h queryinfo.h collectserver.h \
90 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
91 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
92 $(MG_HEADERS)
93
94SOURCES = search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
95 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
96 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
97 phrasequeryfilter.cpp \
98 $(MG_SOURCES)
99
100OBJECTS = search.o querycache.o queryinfo.o collectserver.o \
101 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
102 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
103 $(MG_OBJECTS)
104
105all : $(OBJECTS)
106 make USE_MGPP=1 $(MGPP_OBJECTS)
107
108distclean:
109 rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
110
111clean:
112 rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
113
114install:
115
116depend:
117 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
118
119
120
121
Note: See TracBrowser for help on using the repository browser.