source: main/trunk/gs2-core/runtime-src/src/oaiservr/Makefile.am

Last change on this file was 22824, checked in by mdewsnip, 12 years ago

Lots of makefile tidy ups (both Windows and Linux), for consistency and flexibility.

File size: 1.7 KB
Line 
1###########################################################################
2#
3# Makefile -- Makefile for runtime-src/src/oaiservr
4#
5# By Michael Dewsnip
6#
7# Copyright (C) 2010 DL Consulting Ltd.
8#
9###########################################################################
10
11
12RUNTIME_SRC_DIR = @top_srcdir@
13GSDL_DIR = $(RUNTIME_SRC_DIR)/..
14
15
16# Programs compiled and their install directories
17cgibindir = $(GSDL_DIR)/cgi-bin
18cgibin_PROGRAMS = oaiserver.cgi
19
20# Program: oaiserver.cgi
21oaiserver_cgi_CPPFLAGS = \
22 -I$(GSDL_DIR)/common-src/src/lib \
23 -I$(GSDL_DIR)/runtime-src/src/colservr \
24 -I$(GSDL_DIR)/runtime-src/src/protocol \
25 -I$(GSDL_DIR)/runtime-src/src/recpt \
26 $(COMPAT32BITFLAGS)
27
28# Sources for oaiserver.cgi
29oaiserver_cgi_SOURCES = \
30 $(GSDL_DIR)/runtime-src/src/recpt/cgiargs.cpp \
31 $(GSDL_DIR)/runtime-src/src/recpt/cgiutils.cpp \
32 $(GSDL_DIR)/runtime-src/src/recpt/htmlutils.cpp \
33 abstractlistaction.cpp \
34 dublincore.cpp \
35 identifyaction.cpp \
36 listidsaction.cpp \
37 listrecsaction.cpp \
38 listsetsaction.cpp \
39 metaformat.cpp \
40 metaformatsaction.cpp \
41 oaiaction.cpp \
42 oaiargs.cpp \
43 oaiconfig.cpp \
44 oaidispatcher.cpp \
45 oaimain.cpp \
46 oaitools.cpp \
47 qualified_dublincore.cpp \
48 recordaction.cpp \
49 resumptiontoken.cpp \
50 rfc1807.cpp
51
52oaiserver_cgi_LDADD = \
53 $(GSDL_DIR)/runtime-src/src/protocol/libgsdlprotocol.a \
54 $(GSDL_DIR)/runtime-src/src/colservr/libgsdlcolservr.a \
55 $(GSDL_DIR)/common-src/src/lib/libgsdllib.a
56
57# Option: Lucene support
58if ENABLE_LUCENE
59 oaiserver_cgi_LDADD += $(GSDL_DIR)/common-src/packages/expat/lib/libexpat.a
60endif
61
62# Option: SQLite support
63if USE_SQLITE
64 oaiserver_cgi_LDADD += $(GSDL_DIR)/common-src/packages/sqlite/lib/libsqlite3.a -ldl -lpthread
65endif
66
67oaiserver_cgi_LDFLAGS = $(COMPAT32BITFLAGS)
Note: See TracBrowser for help on using the repository browser.