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