1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # Makefile -- src/protocol
|
---|
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 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
31 |
|
---|
32 |
|
---|
33 | AR = ar
|
---|
34 | CXX = @CXX@
|
---|
35 | CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
|
---|
36 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
|
---|
37 | # Do NOT add the "recpt" directory here: the protocol should be independent of the receptionist!
|
---|
38 | INCLUDES = @GDBM_INCLUDE@ -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/src/lib -I$(COLSERVR_DIR) -I$(INDEXERS_DIR)/mgpp/text
|
---|
39 | RANLIB = @RANLIB@
|
---|
40 |
|
---|
41 |
|
---|
42 | CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
43 |
|
---|
44 |
|
---|
45 | .SUFFIXES:
|
---|
46 | .SUFFIXES: .cpp .o
|
---|
47 | .cpp.o:
|
---|
48 | $(CXXCOMPILE) $<
|
---|
49 |
|
---|
50 |
|
---|
51 | SOURCES = \
|
---|
52 | nullproto.cpp \
|
---|
53 | recptproto.cpp \
|
---|
54 | recptprototools.cpp
|
---|
55 |
|
---|
56 | OBJECTS = \
|
---|
57 | nullproto.o \
|
---|
58 | recptproto.o \
|
---|
59 | recptprototools.o
|
---|
60 |
|
---|
61 | LIBRARY = gsdlprotocol.a
|
---|
62 |
|
---|
63 |
|
---|
64 | # Default target: make gsdlprotocol.a
|
---|
65 | all: $(LIBRARY)
|
---|
66 |
|
---|
67 | gsdlprotocol.a: $(OBJECTS)
|
---|
68 | rm -f $(LIBRARY)
|
---|
69 | $(AR) cru $(LIBRARY) $(OBJECTS)
|
---|
70 | $(RANLIB) $(LIBRARY)
|
---|
71 |
|
---|
72 | install:
|
---|
73 |
|
---|
74 | clean:
|
---|
75 | rm -f $(OBJECTS) $(LIBRARY)
|
---|
76 |
|
---|
77 | distclean:
|
---|
78 | rm -f $(OBJECTS) $(LIBRARY) Makefile
|
---|
79 |
|
---|
80 | depend:
|
---|
81 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|