source: gsdl/trunk/lib/Makefile.in@ 15580

Last change on this file since 15580 was 15580, checked in by mdewsnip, 16 years ago

Hopefully the last of the makefile tidy ups.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
RevLine 
[1076]1###########################################################################
2#
3# Makefile -- 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#
[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
[15464]27GSDL_DIR = ..
28INDEXERS_DIR = $(GSDL_DIR)/indexers
[15546]29PACKAGES_DIR = $(GSDL_DIR)/packages
[1076]30
[15473]31
[1076]32AR = ar
[15552]33CXX = @CXX@
34CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
[1076]35DEFS = @DEFS@
[15508]36INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
[1076]37RANLIB = @RANLIB@
38
[15464]39
[15552]40CXXCOMPILE = $(CXX) -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
[1076]41
[15464]42
[1076]43.SUFFIXES:
44.SUFFIXES: .cpp .o
45.cpp.o:
[15552]46 $(CXXCOMPILE) $<
[1076]47
48
49SOURCES = \
[15464]50 cfgread.cpp \
51 cnfgable.cpp \
52 cnfgator.cpp \
53 dbclass.cpp \
54 display.cpp \
55 fileutil.cpp \
56 gdbmclass.cpp \
57 gsdlsitecfg.cpp \
58 gsdltimes.cpp \
59 gsdltools.cpp \
60 gsdlunicode.cpp \
61 infodbclass.cpp \
62 md5.cpp \
63 OIDtools.cpp \
64 phrases.cpp \
65 text_t.cpp
[1076]66
67OBJECTS = \
[15464]68 cfgread.o \
69 cnfgable.o \
70 cnfgator.o \
71 dbclass.o \
72 display.o \
73 fileutil.o \
74 gdbmclass.o \
75 gsdlsitecfg.o \
76 gsdltimes.o \
77 gsdltools.o \
78 gsdlunicode.o \
79 infodbclass.o \
80 md5.o \
81 OIDtools.o \
82 phrases.o \
83 text_t.o
[1076]84
[15464]85LIBRARY = gsdllib.a
[1076]86
87
[15579]88# Default target: make gsdllib.a
89all: $(LIBRARY)
90
[15464]91gsdllib.a: $(OBJECTS)
[15579]92 rm -f $(LIBRARY)
93 $(AR) cru $(LIBRARY) $(OBJECTS)
94 $(RANLIB) $(LIBRARY)
[1076]95
[15580]96install:
[15464]97
[1076]98clean:
[15579]99 rm -f $(OBJECTS) $(LIBRARY)
[1076]100
[15464]101distclean:
[15579]102 rm -f $(OBJECTS) $(LIBRARY) Makefile
[1076]103
104depend:
[15552]105 makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
Note: See TracBrowser for help on using the repository browser.