root/main/trunk/greenstone2/common-src/src/lib/Makefile.in @ 21325

Revision 21325, 2.6 KB (checked in by ak19, 11 years ago)

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1###########################################################################
2#
3# Makefile -- common-src/src/lib
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 = ../../..
28COMMON_DIR = ../..
29
30INDEXERS_DIR = $(COMMON_DIR)/indexers
31COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
32
33
34USE_SQLITE = @USE_SQLITE@
35ifeq ($(USE_SQLITE), 1)
36SQLITE_INCLUDES = -I$(COMMON_PACKAGES_DIR)/sqlite/include
37SQLITE_OBJECTS = sqlitedbclass.o
38SQLITE_SOURCES = sqlitedbclass.cpp
39else
40SQLITE_INCLUDES =
41SQLITE_OBJECTS =
42SQLITE_SOURCES =
43endif
44
45
46AR = ar
47CXX = @CXX@
48CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
49DEFS = @DEFS@
50INCLUDES = -I. -I$(COMMON_DIR) -I$(COMMON_PACKAGES_DIR)/gdbm/include $(SQLITE_INCLUDES)
51RANLIB = @RANLIB@
52
53
54CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
55
56
57.SUFFIXES:
58.SUFFIXES: .cpp .o
59.cpp.o:
60    $(CXXCOMPILE) $<
61
62
63SOURCES = \
64    cfgread.cpp \
65    cnfgable.cpp \
66    cnfgator.cpp \
67    dbclass.cpp \
68    display.cpp \
69    fileutil.cpp \
70    gdbmclass.cpp \
71    gsdlsitecfg.cpp \
72    gsdltimes.cpp \
73    gsdltools.cpp \
74    gsdlunicode.cpp \
75    infodbclass.cpp \
76    md5.cpp \
77    OIDtools.cpp \
78    phrases.cpp \
79    text_t.cpp \
80    unitool.cpp \
81    $(SQLITE_SOURCES)
82
83OBJECTS = \
84    cfgread.o \
85    cnfgable.o \
86    cnfgator.o \
87    dbclass.o \
88    display.o \
89    fileutil.o \
90    gdbmclass.o \
91    gsdlsitecfg.o \
92    gsdltimes.o \
93    gsdltools.o \
94    gsdlunicode.o \
95    infodbclass.o \
96    md5.o \
97    OIDtools.o \
98    phrases.o \
99    text_t.o \
100    unitool.o \
101    $(SQLITE_OBJECTS)
102
103LIBRARY = gsdllib.a
104
105
106# Default target: make gsdllib.a
107all: $(LIBRARY)
108
109gsdllib.a: $(OBJECTS)
110    rm -f $(LIBRARY)
111    $(AR) cru $(LIBRARY) $(OBJECTS)
112    $(RANLIB) $(LIBRARY)
113
114install:
115
116clean:
117    rm -f $(OBJECTS) $(LIBRARY)
118
119distclean:
120    rm -f $(OBJECTS) $(LIBRARY) Makefile
121
122depend:
123    makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the browser.