source: gsdl/trunk/runtime-src/src/protocol/Makefile.in@ 19302

Last change on this file since 19302 was 18224, checked in by mdewsnip, 15 years ago

GRRRR -- fixed up a whole lot more inconsistencies in the Makefiles. These were all perfect before the build-src/common-src/runtime-src split!!

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