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

Last change on this file since 19966 was 19966, checked in by ak19, 15 years ago

Removed minor annoyance (double slashes in filepath).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
RevLine 
[1076]1###########################################################################
2#
[18224]3# Makefile -- common-src/src/lib
[1076]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#
[15465]8# Copyright (C) 1999-2008 The New Zealand Digital Library Project
[1076]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
[19875]27#GSDL_DIR = ../../..
[19966]28COMMON_DIR = ../..
[1076]29
[18224]30INDEXERS_DIR = $(COMMON_DIR)/indexers
31COMMON_PACKAGES_DIR = $(COMMON_DIR)/packages
[15473]32
[18224]33
[15599]34USE_SQLITE = @USE_SQLITE@
35ifeq ($(USE_SQLITE), 1)
[18224]36SQLITE_INCLUDES = -I$(COMMON_PACKAGES_DIR)/sqlite/include
[15640]37SQLITE_OBJECTS = sqlitedbclass.o
38SQLITE_SOURCES = sqlitedbclass.cpp
[15599]39else
40SQLITE_INCLUDES =
41SQLITE_OBJECTS =
42SQLITE_SOURCES =
43endif
44
45
[1076]46AR = ar
[15552]47CXX = @CXX@
48CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[1076]49DEFS = @DEFS@
[19875]50INCLUDES = -I. -I$(COMMON_DIR) -I$(COMMON_PACKAGES_DIR)/gdbm/include -I$(INDEXERS_DIR)/mg/lib $(SQLITE_INCLUDES)
[1076]51RANLIB = @RANLIB@
52
[15464]53
[15552]54CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[1076]55
[15464]56
[1076]57.SUFFIXES:
58.SUFFIXES: .cpp .o
59.cpp.o:
[15552]60 $(CXXCOMPILE) $<
[1076]61
62
63SOURCES = \
[15464]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 \
[15599]79 text_t.cpp \
80 $(SQLITE_SOURCES)
[1076]81
82OBJECTS = \
[15464]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 \
[15599]98 text_t.o \
99 $(SQLITE_OBJECTS)
[1076]100
[15464]101LIBRARY = gsdllib.a
[1076]102
103
[15579]104# Default target: make gsdllib.a
105all: $(LIBRARY)
106
[15464]107gsdllib.a: $(OBJECTS)
[15579]108 rm -f $(LIBRARY)
109 $(AR) cru $(LIBRARY) $(OBJECTS)
110 $(RANLIB) $(LIBRARY)
[1076]111
[15580]112install:
[15464]113
[1076]114clean:
[15579]115 rm -f $(OBJECTS) $(LIBRARY)
[1076]116
[15464]117distclean:
[15579]118 rm -f $(OBJECTS) $(LIBRARY) Makefile
[1076]119
120depend:
[15552]121 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.