source: gsdl/trunk/src/oaiservr/Makefile.in@ 15907

Last change on this file since 15907 was 15907, checked in by mdewsnip, 13 years ago

Moving "lib" directory into "src", to keep all the source code together. Not tested yet.

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