root/gsdl/trunk/gs2runtime/src/protocol/Makefile.in @ 16563

Revision 16563, 2.2 KB (checked in by davidb, 12 years ago)

Mods to Makefile.in and configure.in to work with newly organized files: gs2build gs2common and gs2runtime

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