source: gsdl/trunk/runtime-src/src/oaiservr/Makefile.in@ 20851

Last change on this file since 20851 was 20851, checked in by oranfry, 13 years ago

doing for oaiserver what I did for library.cgi

  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1###########################################################################
2#
3# Makefile -- runtime-src/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)/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
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 $(COMMON_PACKAGES_DIR)/iconv/lib/libiconv.a
41else
42ACCENTFOLD_LIBS =
43endif
44
45USE_SQLITE = @USE_SQLITE@
46ifeq ($(USE_SQLITE), 1)
47SQLITE_LIBS = $(COMMON_PACKAGES_DIR)/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@ $(COMMON_PACKAGES_DIR)/gdbm/lib/libgdbm.a -L$(COMMON_PACKAGES_DIR)/expat/lib -lexpat \
60 $(ACCENTFOLD_LIBS) $(SQLITE_LIBS)
61INSTALL = @INSTALL@
62
63
64CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(INCLUDES)
65CXXLINK = $(CXX) $(LDFLAGS) -o $@
66
67
68.SUFFIXES:
69.SUFFIXES: .cpp .o
70.cpp.o:
71 $(CXXCOMPILE) -o $@ $<
72
73
74RECPT_OBJECTS = \
75 $(RECPT_DIR)/cgiargs.o \
76 $(RECPT_DIR)/cgiutils.o \
77 $(RECPT_DIR)/htmlutils.o
78
79SOURCES = \
80 abstractlistaction.cpp \
81 dublincore.cpp \
82 qualified_dublincore.cpp \
83 identifyaction.cpp \
84 listidsaction.cpp \
85 listrecsaction.cpp \
86 listsetsaction.cpp \
87 metaformat.cpp \
88 metaformatsaction.cpp \
89 oaiaction.cpp \
90 oaiargs.cpp \
91 oaiconfig.cpp \
92 oaidispatcher.cpp \
93 oaimain.cpp \
94 oaitools.cpp \
95 recordaction.cpp \
96 resumptiontoken.cpp \
97 rfc1807.cpp
98
99OBJECTS = \
100 abstractlistaction.o \
101 dublincore.o \
102 qualified_dublincore.o \
103 identifyaction.o \
104 listidsaction.o \
105 listrecsaction.o \
106 listsetsaction.o \
107 metaformat.o \
108 metaformatsaction.o \
109 oaiaction.o \
110 oaiargs.o \
111 oaiconfig.o \
112 oaidispatcher.o \
113 oaimain.o \
114 oaitools.o \
115 recordaction.o \
116 resumptiontoken.o \
117 rfc1807.o
118
119GSDL_LIBS = \
120 $(PROTOCOL_DIR)/gsdlprotocol.a \
121 $(COLSERVR_DIR)/gsdlcolservr.a \
122 $(INDEXERS_DIR)/mg/src/text/libmgtext.a \
123 $(INDEXERS_DIR)/mg/lib/libmglib.a \
124 $(INDEXERS_DIR)/mgpp/text/libmgpptext.a \
125 $(INDEXERS_DIR)/mgpp/lib/libmgpplib.a \
126 $(COMMON_DIR)/src/lib/gsdllib.a
127
128EXECUTABLE_OBJECTS = \
129 $(OBJECTS) \
130 $(RECPT_OBJECTS) \
131 $(GSDL_LIBS)
132
133EXECUTABLE = oaiserver.cgi
134
135
136# Default target: make the oaiserver executable
137all: $(EXECUTABLE)
138
139$(EXECUTABLE): $(EXECUTABLE_OBJECTS)
140 $(CXXLINK) $(EXECUTABLE_OBJECTS) $(LIBS)
141
142install: $(EXECUTABLE)
143 $(INSTALL) -m 755 -s $(EXECUTABLE) $(GSDL_DIR)/cgi-bin
144
145clean:
146 rm -f $(OBJECTS) $(EXECUTABLE)
147
148distclean:
149 rm -f $(OBJECTS) $(EXECUTABLE) Makefile
150
151depend:
152 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.