source: gsdl/trunk/gs2runtime/src/oaiservr/Makefile.in@ 16563

Last change on this file since 16563 was 16563, checked in by davidb, 13 years ago

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

  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1###########################################################################
2#
3# Makefile -- src/oaiservr
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
29RUNTIME_DIR = $(GSDL_DIR)/gs2runtime
30
31INDEXERS_DIR = $(COMMON_DIR)/indexers
32PACKAGES_DIR = $(RUNTIME_DIR)/packages
33COLSERVR_DIR = $(RUNTIME_DIR)/src/colservr
34PROTOCOL_DIR = $(RUNTIME_DIR)/src/protocol
35RECPT_DIR = $(RUNTIME_DIR)/src/recpt
36
37
38ENABLE_ACCENTFOLD = @ENABLE_ACCENTFOLD@
39ifeq ($(ENABLE_ACCENTFOLD), 1)
40ACCENTFOLD_LIBS = $(INDEXERS_DIR)/packages/unac/libunac.a
41else
42ACCENTFOLD_LIBS =
43endif
44
45USE_SQLITE = @USE_SQLITE@
46ifeq ($(USE_SQLITE), 1)
47SQLITE_LIBS = $(COMMON_DIR)/packages/sqlite/lib/libsqlite3.a -ldl -lpthread
48else
49SQLITE_LIBS =
50endif
51
52
53CC = @CC@
54CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@
55CXX = @CXX@
56CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
57INCLUDES = -I$(COMMON_DIR)/src/lib -I$(COLSERVR_DIR) -I$(PROTOCOL_DIR) -I$(RECPT_DIR) -I$(INDEXERS_DIR)/mgpp/text
58LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
59LIBS = @LIBS@ @GDBM_LIBPATH@ -lgdbm -L$(PACKAGES_DIR)/expat/lib -lexpat $(ACCENTFOLD_LIBS) $(SQLITE_LIBS)
60INSTALL = @INSTALL@
61
62
63CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(INCLUDES)
64CXXLINK = $(CXX) $(LDFLAGS) -o $@
65
66
67.SUFFIXES:
68.SUFFIXES: .cpp .o
69.cpp.o:
70 $(CXXCOMPILE) -o $@ $<
71
72
73RECPT_OBJECTS = \
74 $(RECPT_DIR)/cgiargs.o \
75 $(RECPT_DIR)/cgiutils.o \
76 $(RECPT_DIR)/htmlutils.o
77
78SOURCES = \
79 abstractlistaction.cpp \
80 dublincore.cpp \
81 identifyaction.cpp \
82 listidsaction.cpp \
83 listrecsaction.cpp \
84 listsetsaction.cpp \
85 metaformat.cpp \
86 metaformatsaction.cpp \
87 oaiaction.cpp \
88 oaiargs.cpp \
89 oaiconfig.cpp \
90 oaidispatcher.cpp \
91 oaimain.cpp \
92 oaitools.cpp \
93 recordaction.cpp \
94 resumptiontoken.cpp \
95 rfc1807.cpp
96
97OBJECTS = \
98 abstractlistaction.o \
99 dublincore.o \
100 identifyaction.o \
101 listidsaction.o \
102 listrecsaction.o \
103 listsetsaction.o \
104 metaformat.o \
105 metaformatsaction.o \
106 oaiaction.o \
107 oaiargs.o \
108 oaiconfig.o \
109 oaidispatcher.o \
110 oaimain.o \
111 oaitools.o \
112 recordaction.o \
113 resumptiontoken.o \
114 rfc1807.o
115
116GSDL_LIBS = \
117 $(PROTOCOL_DIR)/gsdlprotocol.a \
118 $(COLSERVR_DIR)/gsdlcolservr.a \
119 $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
120 $(INDEXERS_DIR)/mg/lib/libmglib.a \
121 $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
122 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
123 $(COMMON_DIR)/src/lib/gsdllib.a
124
125EXECUTABLE_OBJECTS = \
126 $(OBJECTS) \
127 $(RECPT_OBJECTS) \
128 $(GSDL_LIBS)
129
130EXECUTABLE = oaiserver
131
132
133# Default target: make the oaiserver executable
134all: $(EXECUTABLE)
135
136oaiserver: $(EXECUTABLE_OBJECTS)
137 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
138
139install: $(EXECUTABLE)
140 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
141
142clean:
143 rm -f $(OBJECTS) $(EXECUTABLE)
144
145distclean:
146 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
147
148depend:
149 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.