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