[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] | 27 | GSDL_DIR = ..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
[15546] | 29 | PACKAGES_DIR = $(GSDL_DIR)/packages
|
---|
[1076] | 30 |
|
---|
[15473] | 31 |
|
---|
[1076] | 32 | AR = ar
|
---|
[15552] | 33 | CXX = @CXX@
|
---|
| 34 | CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@
|
---|
[1076] | 35 | DEFS = @DEFS@
|
---|
[15508] | 36 | INCLUDES = @GDBM_INCLUDE@ -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
|
---|
[1076] | 37 | RANLIB = @RANLIB@
|
---|
| 38 |
|
---|
[15464] | 39 |
|
---|
[15552] | 40 | CXXCOMPILE = $(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 |
|
---|
| 49 | SOURCES = \
|
---|
[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 |
|
---|
| 67 | OBJECTS = \
|
---|
[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] | 85 | LIBRARY = gsdllib.a
|
---|
[1076] | 86 |
|
---|
| 87 |
|
---|
[15579] | 88 | # Default target: make gsdllib.a
|
---|
| 89 | all: $(LIBRARY)
|
---|
| 90 |
|
---|
[15464] | 91 | gsdllib.a: $(OBJECTS)
|
---|
[15579] | 92 | rm -f $(LIBRARY)
|
---|
| 93 | $(AR) cru $(LIBRARY) $(OBJECTS)
|
---|
| 94 | $(RANLIB) $(LIBRARY)
|
---|
[1076] | 95 |
|
---|
[15580] | 96 | install:
|
---|
[15464] | 97 |
|
---|
[1076] | 98 | clean:
|
---|
[15579] | 99 | rm -f $(OBJECTS) $(LIBRARY)
|
---|
[1076] | 100 |
|
---|
[15464] | 101 | distclean:
|
---|
[15579] | 102 | rm -f $(OBJECTS) $(LIBRARY) Makefile
|
---|
[1076] | 103 |
|
---|
| 104 | depend:
|
---|
[15552] | 105 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CXXFLAGS) -- $(SOURCES)
|
---|