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-2008 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 | GSDL_DIR = ../.. |
---|
28 | INDEXERS_DIR = $(GSDL_DIR)/indexers |
---|
29 | PACKAGES_DIR = $(GSDL_DIR)/packages |
---|
30 | |
---|
31 | |
---|
32 | AR = ar |
---|
33 | CC = @CC@ |
---|
34 | CPP = @CXX@ |
---|
35 | CFLAGS = @CFLAGS@ |
---|
36 | CPPFLAGS = @CXXFLAGS@ |
---|
37 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER |
---|
38 | # Do NOT add the "recpt" directory here: the colserver should be independent of the receptionist! |
---|
39 | INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib \ |
---|
40 | -I$(INDEXERS_DIR)/mg -I$(INDEXERS_DIR)/mg/lib -I$(INDEXERS_DIR)/mg/src/text \ |
---|
41 | -I$(INDEXERS_DIR)/mgpp/lib -I$(INDEXERS_DIR)/mgpp/text \ |
---|
42 | -I$(PACKAGES_DIR)/expat/include |
---|
43 | RANLIB = @RANLIB@ |
---|
44 | |
---|
45 | |
---|
46 | COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) |
---|
47 | CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) |
---|
48 | |
---|
49 | |
---|
50 | .SUFFIXES: |
---|
51 | .SUFFIXES: .c .o |
---|
52 | .c.o: |
---|
53 | $(COMPILE) $< |
---|
54 | |
---|
55 | .SUFFIXES: .cpp .o |
---|
56 | .cpp.o: |
---|
57 | $(CPPCOMPILE) $< |
---|
58 | |
---|
59 | |
---|
60 | SOURCES = \ |
---|
61 | browsefilter.cpp \ |
---|
62 | collectserver.cpp \ |
---|
63 | collectset.cpp \ |
---|
64 | colservrconfig.cpp \ |
---|
65 | comtypes.cpp \ |
---|
66 | expat_document.cpp \ |
---|
67 | expat_resultset.cpp \ |
---|
68 | filter.cpp \ |
---|
69 | gdbmsource.cpp \ |
---|
70 | lucenegdbmsource.cpp \ |
---|
71 | lucenequeryfilter.cpp \ |
---|
72 | lucenesearch.cpp \ |
---|
73 | maptools.cpp \ |
---|
74 | mggdbmsource.cpp \ |
---|
75 | mgq.c \ |
---|
76 | mgqueryfilter.cpp \ |
---|
77 | mgsearch.cpp \ |
---|
78 | mgppqueryfilter.cpp \ |
---|
79 | mgppsearch.cpp \ |
---|
80 | phrasequeryfilter.cpp \ |
---|
81 | phrasesearch.cpp \ |
---|
82 | querycache.cpp \ |
---|
83 | queryfilter.cpp \ |
---|
84 | queryinfo.cpp \ |
---|
85 | search.cpp \ |
---|
86 | source.cpp |
---|
87 | |
---|
88 | OBJECTS = \ |
---|
89 | browsefilter.o \ |
---|
90 | collectserver.o \ |
---|
91 | collectset.o \ |
---|
92 | colservrconfig.o \ |
---|
93 | comtypes.o \ |
---|
94 | expat_document.o \ |
---|
95 | expat_resultset.o \ |
---|
96 | filter.o \ |
---|
97 | gdbmsource.o \ |
---|
98 | lucenegdbmsource.o \ |
---|
99 | lucenequeryfilter.o \ |
---|
100 | lucenesearch.o \ |
---|
101 | maptools.o \ |
---|
102 | mggdbmsource.o \ |
---|
103 | mgq.o \ |
---|
104 | mgqueryfilter.o \ |
---|
105 | mgsearch.o \ |
---|
106 | mgppqueryfilter.o \ |
---|
107 | mgppsearch.o \ |
---|
108 | phrasequeryfilter.o \ |
---|
109 | phrasesearch.o \ |
---|
110 | querycache.o \ |
---|
111 | queryfilter.o \ |
---|
112 | queryinfo.o \ |
---|
113 | search.o \ |
---|
114 | source.o |
---|
115 | |
---|
116 | LIBRARY = gsdlcolservr.a |
---|
117 | |
---|
118 | |
---|
119 | gsdlcolservr.a: $(OBJECTS) |
---|
120 | rm -f gsdlcolservr.a |
---|
121 | $(AR) cru gsdlcolservr.a $(OBJECTS) |
---|
122 | $(RANLIB) gsdlcolservr.a |
---|
123 | |
---|
124 | all: $(LIBRARY) |
---|
125 | |
---|
126 | install: $(LIBRARY) |
---|
127 | |
---|
128 | clean: |
---|
129 | rm -f $(OBJECTS) |
---|
130 | |
---|
131 | distclean: |
---|
132 | rm -f $(OBJECTS) Makefile |
---|
133 | |
---|
134 | depend: |
---|
135 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES) |
---|