[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 | #
|
---|
| 8 | # Copyright (C) 1999 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 |
|
---|
[15464] | 27 | GSDL_DIR = ..
|
---|
| 28 | INDEXERS_DIR = $(GSDL_DIR)/indexers
|
---|
[1076] | 29 |
|
---|
| 30 | AR = ar
|
---|
[1860] | 31 | CPP = @CXX@
|
---|
[15464] | 32 | CPPFLAGS = @CXXFLAGS@
|
---|
[1076] | 33 | DEFS = @DEFS@
|
---|
[15464] | 34 | INCLUDES = -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
|
---|
[1076] | 35 | RANLIB = @RANLIB@
|
---|
| 36 |
|
---|
[15464] | 37 |
|
---|
[1860] | 38 | CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
[1076] | 39 |
|
---|
[15464] | 40 |
|
---|
[1076] | 41 | .SUFFIXES:
|
---|
| 42 | .SUFFIXES: .cpp .o
|
---|
| 43 | .cpp.o:
|
---|
[1860] | 44 | $(CPPCOMPILE) $<
|
---|
[1076] | 45 |
|
---|
| 46 |
|
---|
| 47 | SOURCES = \
|
---|
[15464] | 48 | cfgread.cpp \
|
---|
| 49 | cnfgable.cpp \
|
---|
| 50 | cnfgator.cpp \
|
---|
| 51 | dbclass.cpp \
|
---|
| 52 | display.cpp \
|
---|
| 53 | fileutil.cpp \
|
---|
| 54 | gdbmclass.cpp \
|
---|
| 55 | gsdlsitecfg.cpp \
|
---|
| 56 | gsdltimes.cpp \
|
---|
| 57 | gsdltools.cpp \
|
---|
| 58 | gsdlunicode.cpp \
|
---|
| 59 | infodbclass.cpp \
|
---|
| 60 | md5.cpp \
|
---|
| 61 | OIDtools.cpp \
|
---|
| 62 | phrases.cpp \
|
---|
| 63 | text_t.cpp
|
---|
[1076] | 64 |
|
---|
| 65 | OBJECTS = \
|
---|
[15464] | 66 | cfgread.o \
|
---|
| 67 | cnfgable.o \
|
---|
| 68 | cnfgator.o \
|
---|
| 69 | dbclass.o \
|
---|
| 70 | display.o \
|
---|
| 71 | fileutil.o \
|
---|
| 72 | gdbmclass.o \
|
---|
| 73 | gsdlsitecfg.o \
|
---|
| 74 | gsdltimes.o \
|
---|
| 75 | gsdltools.o \
|
---|
| 76 | gsdlunicode.o \
|
---|
| 77 | infodbclass.o \
|
---|
| 78 | md5.o \
|
---|
| 79 | OIDtools.o \
|
---|
| 80 | phrases.o \
|
---|
| 81 | text_t.o
|
---|
[1076] | 82 |
|
---|
[15464] | 83 | LIBRARY = gsdllib.a
|
---|
[1076] | 84 |
|
---|
| 85 |
|
---|
[15464] | 86 | gsdllib.a: $(OBJECTS)
|
---|
[1076] | 87 | rm -f gsdllib.a
|
---|
[15464] | 88 | $(AR) cru gsdllib.a $(OBJECTS)
|
---|
[1076] | 89 | $(RANLIB) gsdllib.a
|
---|
| 90 |
|
---|
[15464] | 91 | all: $(LIBRARY)
|
---|
| 92 |
|
---|
| 93 | install: $(LIBRARY)
|
---|
| 94 |
|
---|
[1076] | 95 | clean:
|
---|
[15462] | 96 | rm -f $(OBJECTS) gsdllib.a
|
---|
[1076] | 97 |
|
---|
[15464] | 98 | distclean:
|
---|
| 99 | rm -f $(OBJECTS) gsdllib.a Makefile
|
---|
[1076] | 100 |
|
---|
| 101 | depend:
|
---|
[15464] | 102 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
|
---|