source: trunk/gsdl/src/colservr/Makefile.in@ 1338

Last change on this file since 1338 was 1338, checked in by kjm18, 24 years ago

added mgpp search and queryfilter objects to make clean

  • 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 -DGSDLSERVER @DEFS@
37
38CGI_INCLUDES =
39
40else
41DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER -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
54
55else
56MG_INCLUDES = -I../mgpp/text -I../mgpp/lib
57
58MG_HEADERS = mgppsearch.h mgppqueryfilter.h
59
60MG_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
61
62MG_OBJECTS = mgppsearch.o mgppqueryfilter.o
63
64endif
65
66INCLUDES = -I../.. -I../../lib -I ../recpt \
67 $(CGI_INCLUDES) $(MG_INCLUDES)
68
69RANLIB = @RANLIB@
70LDFLAGS = @LDFLAGS@
71LIBS = @LIBS@
72
73GSDLOS = @gsdlos@
74
75
76COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
77LINK = $(CC) $(LDFLAGS) -o $@
78
79.SUFFIXES:
80.SUFFIXES: .c .o
81.c.o:
82 $(COMPILE) $<
83
84.SUFFIXES: .cpp .o
85.cpp.o:
86 $(COMPILE) $<
87
88HEADERS = search.h querycache.h queryinfo.h collectserver.h \
89 colservrconfig.h maptools.h filter.h source.h browsefilter.h \
90 queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h \
91 $(MG_HEADERS)
92
93SOURCES = search.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
94 colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
95 browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
96 phrasequeryfilter.cpp \
97 $(MG_SOURCES)
98
99OBJECTS = search.o querycache.o queryinfo.o collectserver.o \
100 colservrconfig.o maptools.o filter.o source.o browsefilter.o \
101 queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o \
102 $(MG_OBJECTS)
103
104all : $(OBJECTS)
105
106distclean:
107 rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
108
109clean:
110 rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
111
112install:
113
114depend:
115 makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
116
117
118
119
Note: See TracBrowser for help on using the repository browser.