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