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 |
|
---|
28 | AR = ar
|
---|
29 | CC = @CC@
|
---|
30 | #CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
|
---|
31 | CCFLAGS = @CFLAGS@
|
---|
32 |
|
---|
33 | USE_FASTCGI = @USE_FASTCGI@
|
---|
34 | USE_MGPP = @USE_MGPP@
|
---|
35 | ifneq ($(USE_FASTCGI), 1)
|
---|
36 | DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
|
---|
37 |
|
---|
38 | CGI_INCLUDES =
|
---|
39 |
|
---|
40 | else
|
---|
41 | DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER -DUSE_FASTCGI @DEFS@
|
---|
42 |
|
---|
43 | CGI_INCLUDES = -I../../packages/fcgi/include
|
---|
44 | endif
|
---|
45 |
|
---|
46 | ifneq ($(USE_MGPP), 1)
|
---|
47 | MG_INCLUDES = -I../../packages/mg -I../../packages/mg/lib \
|
---|
48 | -I../../packages/mg/src/text
|
---|
49 | MG_HEADERS = mgq.h mgsearch.h mgqueryfilter.h
|
---|
50 |
|
---|
51 | MG_SOURCES = mgq.c mgsearch.cpp mgqueryfilter.cpp
|
---|
52 |
|
---|
53 | MG_OBJECTS = mgq.o mgsearch.o mgqueryfilter.o
|
---|
54 |
|
---|
55 | else
|
---|
56 | MG_INCLUDES = -I../mgpp/text -I../mgpp/lib
|
---|
57 |
|
---|
58 | MG_HEADERS = mgppsearch.h mgppqueryfilter.h
|
---|
59 |
|
---|
60 | MG_SOURCES = mgppsearch.cpp mgppqueryfilter.cpp
|
---|
61 |
|
---|
62 | MG_OBJECTS = mgppsearch.o mgppqueryfilter.o
|
---|
63 |
|
---|
64 | endif
|
---|
65 |
|
---|
66 | INCLUDES = -I../.. -I../../lib -I ../recpt \
|
---|
67 | $(CGI_INCLUDES) $(MG_INCLUDES)
|
---|
68 |
|
---|
69 | RANLIB = @RANLIB@
|
---|
70 | LDFLAGS = @LDFLAGS@
|
---|
71 | LIBS = @LIBS@
|
---|
72 |
|
---|
73 | GSDLOS = @gsdlos@
|
---|
74 |
|
---|
75 |
|
---|
76 | COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
77 | LINK = $(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 |
|
---|
88 | HEADERS = 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 |
|
---|
93 | SOURCES = 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 |
|
---|
99 | OBJECTS = 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 |
|
---|
104 | all : $(OBJECTS)
|
---|
105 |
|
---|
106 | distclean:
|
---|
107 | rm -f $(OBJECTS) Makefile mgppsearch.o mgppqueryfilter.o
|
---|
108 |
|
---|
109 | clean:
|
---|
110 | rm -f $(OBJECTS) mgppsearch.o mgppqueryfilter.o
|
---|
111 |
|
---|
112 | install:
|
---|
113 |
|
---|
114 | depend:
|
---|
115 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|
119 |
|
---|