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 |
|
---|
32 | USE_FASTCGI = @USE_FASTCGI@
|
---|
33 | ifneq ($(USE_FASTCGI), 1)
|
---|
34 | DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER @DEFS@
|
---|
35 |
|
---|
36 | INCLUDES = -I../.. -I../../lib -I../recpt -I../../packages/mg \
|
---|
37 | -I../../packages/mg/lib -I../../packages/mg/src/text
|
---|
38 | else
|
---|
39 | DEFS = -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER -DUSE_FASTCGI @DEFS@
|
---|
40 |
|
---|
41 | INCLUDES = -I../../lib -I../recpt -I../../packages/mg \
|
---|
42 | -I../../packages/mg/lib -I../../packages/mg/src/text \
|
---|
43 | -I../../packages/fcgi/include
|
---|
44 | endif
|
---|
45 |
|
---|
46 | RANLIB = @RANLIB@
|
---|
47 | LDFLAGS = @LDFLAGS@
|
---|
48 | #LIBS = -lgdbm -lstdc++ -lm
|
---|
49 | LIBS = @LIBS@
|
---|
50 |
|
---|
51 | GSDLOS = @gsdlos@
|
---|
52 |
|
---|
53 |
|
---|
54 | COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
55 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
56 |
|
---|
57 | .SUFFIXES:
|
---|
58 | .SUFFIXES: .c .o
|
---|
59 | .c.o:
|
---|
60 | $(COMPILE) $<
|
---|
61 |
|
---|
62 | .SUFFIXES: .cpp .o
|
---|
63 | .cpp.o:
|
---|
64 | $(COMPILE) $<
|
---|
65 |
|
---|
66 | HEADERS = mgq.h mgsearch.h querycache.h queryinfo.h collectserver.h \
|
---|
67 | colservrconfig.h maptools.h filter.h source.h browsefilter.h \
|
---|
68 | queryfilter.h mggdbmsource.h phrasesearch.h phrasequeryfilter.h
|
---|
69 |
|
---|
70 | SOURCES = mgq.c mgsearch.cpp querycache.cpp queryinfo.cpp collectserver.cpp \
|
---|
71 | colservrconfig.cpp maptools.cpp filter.cpp source.cpp \
|
---|
72 | browsefilter.cpp queryfilter.cpp mggdbmsource.cpp phrasesearch.cpp \
|
---|
73 | phrasequeryfilter.cpp
|
---|
74 |
|
---|
75 | OBJECTS = mgq.o mgsearch.o querycache.o queryinfo.o collectserver.o \
|
---|
76 | colservrconfig.o maptools.o filter.o source.o browsefilter.o \
|
---|
77 | queryfilter.o mggdbmsource.o phrasesearch.o phrasequeryfilter.o
|
---|
78 |
|
---|
79 | all : $(OBJECTS)
|
---|
80 |
|
---|
81 | distclean:
|
---|
82 | rm -f $(OBJECTS) Makefile
|
---|
83 |
|
---|
84 | clean:
|
---|
85 | rm -f $(OBJECTS)
|
---|
86 |
|
---|
87 | install:
|
---|
88 |
|
---|
89 | depend:
|
---|
90 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|