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