[15492] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # Makefile -- src/z3950
|
---|
| 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 | COLSERVR_DIR = $(GSDL_DIR)/src/colservr
|
---|
| 30 | PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
|
---|
| 31 |
|
---|
| 32 |
|
---|
[15495] | 33 | USE_Z3950 = @USE_Z3950@
|
---|
| 34 | ifeq ($(USE_Z3950), 1)
|
---|
| 35 | Z3950_INCLUDES = -I$(GSDL_DIR)/packages/yaz/yaz-2.1.4/include -I$(GSDL_DIR)/packages/yaz/yaz-2.1.4/client
|
---|
| 36 | else
|
---|
| 37 | Z3950_INCLUDES =
|
---|
| 38 | endif
|
---|
| 39 |
|
---|
| 40 |
|
---|
[15492] | 41 | AR = ar
|
---|
[15495] | 42 | CC = @CC@
|
---|
[15492] | 43 | CPP = @CXX@
|
---|
[15495] | 44 | CFLAGS = @CFLAGS@
|
---|
[15492] | 45 | CPPFLAGS = @CXXFLAGS@
|
---|
| 46 | DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
|
---|
| 47 | # Do NOT add the "recpt" directory here: the z39.50 code should be independent of the receptionist!
|
---|
[15495] | 48 | INCLUDES = -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) \
|
---|
| 49 | -I$(INDEXERS_DIR)/mgpp/text $(Z3950_INCLUDES)
|
---|
[15492] | 50 | RANLIB = @RANLIB@
|
---|
| 51 |
|
---|
| 52 |
|
---|
[15495] | 53 | COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES)
|
---|
[15492] | 54 | CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 55 |
|
---|
| 56 |
|
---|
| 57 | .SUFFIXES:
|
---|
[15495] | 58 | .SUFFIXES: .c .o
|
---|
| 59 | .c.o:
|
---|
| 60 | $(COMPILE) $<
|
---|
| 61 |
|
---|
[15492] | 62 | .SUFFIXES: .cpp .o
|
---|
| 63 | .cpp.o:
|
---|
| 64 | $(CPPCOMPILE) $<
|
---|
| 65 |
|
---|
| 66 |
|
---|
| 67 | SOURCES = \
|
---|
[15495] | 68 | yaz_zclient.c \
|
---|
[15492] | 69 | z3950proto.cpp \
|
---|
[15495] | 70 | z3950proxy.cpp \
|
---|
| 71 | zparse.tab.c \
|
---|
| 72 | zparse.yy.c
|
---|
[15492] | 73 |
|
---|
| 74 | OBJECTS = \
|
---|
[15495] | 75 | yaz_zclient.o \
|
---|
[15492] | 76 | z3950proto.o \
|
---|
[15495] | 77 | z3950proxy.o \
|
---|
| 78 | zparse.tab.o \
|
---|
| 79 | zparse.yy.o
|
---|
[15492] | 80 |
|
---|
| 81 | LIBRARY = gsdlz3950.a
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 | gsdlz3950.a: $(OBJECTS)
|
---|
| 85 | rm -f gsdlz3950.a
|
---|
[15496] | 86 | $(AR) cru gsdlz3950.a $(OBJECTS) $(GSDL_DIR)/packages/yaz/yaz-2.1.4/client/tabcomplete.o
|
---|
[15492] | 87 | $(RANLIB) gsdlz3950.a
|
---|
| 88 |
|
---|
| 89 | all: $(LIBRARY)
|
---|
| 90 |
|
---|
| 91 | install: $(LIBRARY)
|
---|
| 92 |
|
---|
| 93 | clean:
|
---|
| 94 | rm -f $(OBJECTS)
|
---|
| 95 |
|
---|
| 96 | distclean:
|
---|
| 97 | rm -f $(OBJECTS) Makefile
|
---|
| 98 |
|
---|
| 99 | depend:
|
---|
| 100 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|