[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 |
|
---|
| 27 |
|
---|
| 28 | AR = ar
|
---|
| 29 | CC = @CC@
|
---|
[1860] | 30 | CPP = @CXX@
|
---|
[1283] | 31 | CCFLAGS = @CFLAGS@
|
---|
[1076] | 32 | DEFS = @DEFS@
|
---|
[13776] | 33 | INCLUDES = -I../indexers/mg/lib -I..
|
---|
[1076] | 34 | RANLIB = @RANLIB@
|
---|
| 35 |
|
---|
| 36 | COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
[1860] | 37 | CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
[1076] | 38 |
|
---|
| 39 | .SUFFIXES:
|
---|
| 40 | .SUFFIXES: .c .o
|
---|
| 41 | .c.o:
|
---|
| 42 | $(COMPILE) $<
|
---|
| 43 |
|
---|
| 44 | .SUFFIXES: .cpp .o
|
---|
| 45 | .cpp.o:
|
---|
[1860] | 46 | $(CPPCOMPILE) $<
|
---|
[1076] | 47 |
|
---|
| 48 |
|
---|
| 49 | HEADERS = \
|
---|
[15436] | 50 | cfgread.h cnfgable.h cnfgator.h dbclass.h \
|
---|
| 51 | display.h fileutil.h gdbmclass.h gsdlsitecfg.h \
|
---|
| 52 | gsdltimes.h gsdltools.h gsdlunicode.h infodbclass.h \
|
---|
| 53 | md5.h OIDtools.h phrases.h text_t.h \
|
---|
[15462] | 54 | gsdlconf.h
|
---|
[1076] | 55 |
|
---|
| 56 | SOURCES = \
|
---|
[15436] | 57 | cfgread.cpp cnfgable.cpp cnfgator.cpp dbclass.cpp \
|
---|
| 58 | display.cpp fileutil.cpp gdbmclass.cpp gsdlsitecfg.cpp \
|
---|
| 59 | gsdltimes.cpp gsdltools.cpp gsdlunicode.cpp infodbclass.cpp \
|
---|
[15462] | 60 | md5.cpp OIDtools.cpp phrases.cpp text_t.cpp
|
---|
[1076] | 61 |
|
---|
| 62 | OBJECTS = \
|
---|
[15436] | 63 | cfgread.o cnfgable.o cnfgator.o dbclass.o \
|
---|
| 64 | display.o fileutil.o gdbmclass.o gsdlsitecfg.o \
|
---|
| 65 | gsdltimes.o gsdltools.o gsdlunicode.o infodbclass.o \
|
---|
[15462] | 66 | md5.o OIDtools.o phrases.o text_t.o
|
---|
[1076] | 67 |
|
---|
| 68 |
|
---|
| 69 | all: gsdllib.a
|
---|
| 70 |
|
---|
| 71 | GSDLLIBOBJECTS = $(OBJECTS)
|
---|
| 72 |
|
---|
| 73 | gsdllib.a: $(GSDLLIBOBJECTS)
|
---|
| 74 | rm -f gsdllib.a
|
---|
| 75 | $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
|
---|
| 76 | $(RANLIB) gsdllib.a
|
---|
| 77 |
|
---|
| 78 | clean:
|
---|
[15462] | 79 | rm -f $(OBJECTS) gsdllib.a
|
---|
[1076] | 80 |
|
---|
[1939] | 81 | distclean: clean
|
---|
| 82 | rm -f Makefile
|
---|
[1076] | 83 | install:
|
---|
| 84 |
|
---|
| 85 | depend:
|
---|
| 86 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
[1860] | 87 |
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 |
|
---|