source: gsdl/trunk/common-src/src/lib/Makefile.in@ 19875

Last change on this file since 19875 was 19875, checked in by kjdon, 15 years ago

making common-src compile independently of gsdl or gs2build (for gs3) so modified makefiles to look for things in common-src dir rather than one level up

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
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 -I$(INDEXERS_DIR)/mg/lib $(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 $(SQLITE_SOURCES)
81
82OBJECTS = \
83 cfgread.o \
84 cnfgable.o \
85 cnfgator.o \
86 dbclass.o \
87 display.o \
88 fileutil.o \
89 gdbmclass.o \
90 gsdlsitecfg.o \
91 gsdltimes.o \
92 gsdltools.o \
93 gsdlunicode.o \
94 infodbclass.o \
95 md5.o \
96 OIDtools.o \
97 phrases.o \
98 text_t.o \
99 $(SQLITE_OBJECTS)
100
101LIBRARY = gsdllib.a
102
103
104# Default target: make gsdllib.a
105all: $(LIBRARY)
106
107gsdllib.a: $(OBJECTS)
108 rm -f $(LIBRARY)
109 $(AR) cru $(LIBRARY) $(OBJECTS)
110 $(RANLIB) $(LIBRARY)
111
112install:
113
114clean:
115 rm -f $(OBJECTS) $(LIBRARY)
116
117distclean:
118 rm -f $(OBJECTS) $(LIBRARY) Makefile
119
120depend:
121 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.