source: gsdl/trunk/src/z3950/Makefile.in@ 15492

Last change on this file since 15492 was 15492, checked in by mdewsnip, 16 years ago

New directory to contain all the Z39.50 code (currently incomplete).

File size: 2.1 KB
Line 
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
27GSDL_DIR = ../..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
29COLSERVR_DIR = $(GSDL_DIR)/src/colservr
30PROTOCOL_DIR = $(GSDL_DIR)/src/protocol
31
32
33AR = ar
34CPP = @CXX@
35CPPFLAGS = @CXXFLAGS@
36DEFS = @DEFS@ -DNZDL -DQUIET -DSHORT_SUFFIX -DPARADOCNUM -DGSDLSERVER
37# Do NOT add the "recpt" directory here: the z39.50 code should be independent of the receptionist!
38INCLUDES = -I. -I$(GSDL_DIR) -I$(GSDL_DIR)/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(INDEXERS_DIR)/mgpp/text
39RANLIB = @RANLIB@
40
41
42CPPCOMPILE = $(CPP) -c $(CPPFLAGS) $(DEFS) $(INCLUDES)
43CPPLINK = $(CPP) $(LDFLAGS) -o $@
44
45
46.SUFFIXES:
47.SUFFIXES: .cpp .o
48.cpp.o:
49 $(CPPCOMPILE) $<
50
51
52SOURCES = \
53 z3950proto.cpp \
54 z3950proxy.cpp
55
56OBJECTS = \
57 z3950proto.o \
58 z3950proxy.o
59
60LIBRARY = gsdlz3950.a
61
62
63gsdlz3950.a: $(OBJECTS)
64 rm -f gsdlz3950.a
65 $(AR) cru gsdlz3950.a $(OBJECTS)
66 $(RANLIB) gsdlz3950.a
67
68all: $(LIBRARY)
69
70install: $(LIBRARY)
71
72clean:
73 rm -f $(OBJECTS)
74
75distclean:
76 rm -f $(OBJECTS) Makefile
77
78depend:
79 makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.