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