[5503] | 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@
|
---|
| 30 | CPP = @CXX@
|
---|
| 31 | #CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
|
---|
| 32 | CCFLAGS = @CFLAGS@
|
---|
| 33 | MCFLAGS = -Wall -Wunused
|
---|
| 34 | DEFS = @DEFS@
|
---|
[5545] | 35 | INCLUDES = -I..
|
---|
[5503] | 36 | RANLIB = @RANLIB@
|
---|
| 37 |
|
---|
| 38 | COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 39 | CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
|
---|
| 40 |
|
---|
| 41 | .SUFFIXES:
|
---|
| 42 | .SUFFIXES: .c .o
|
---|
| 43 | .c.o:
|
---|
| 44 | $(COMPILE) $<
|
---|
| 45 |
|
---|
| 46 | .SUFFIXES: .cpp .o
|
---|
| 47 | .cpp.o:
|
---|
| 48 | $(CPPCOMPILE) $<
|
---|
| 49 |
|
---|
| 50 | HEADERS = \
|
---|
| 51 | cfgread.h fileutil.h gsdlunicode.h gsdltools.h text_t.h \
|
---|
[5545] | 52 | display.h gsdlconf.h cnfgable.h gsdltimes.h cnfgator.h unitool.h
|
---|
[5503] | 53 |
|
---|
| 54 | SOURCES = \
|
---|
| 55 | cfgread.cpp fileutil.cpp text_t.cpp cnfgable.cpp \
|
---|
| 56 | display.cpp gsdlunicode.cpp gsdltimes.cpp gsdltools.cpp \
|
---|
[5545] | 57 | cnfgator.cpp unitool.c
|
---|
[5503] | 58 |
|
---|
| 59 | OBJECTS = \
|
---|
| 60 | cfgread.o fileutil.o text_t.o cnfgable.o \
|
---|
| 61 | display.o gsdlunicode.o gsdltimes.o gsdltools.o \
|
---|
[5545] | 62 | cnfgator.o unitool.o
|
---|
[5503] | 63 |
|
---|
| 64 |
|
---|
| 65 | all: gsdllib.a
|
---|
| 66 |
|
---|
| 67 | GSDLLIBOBJECTS = $(OBJECTS)
|
---|
| 68 |
|
---|
| 69 | gsdllib.a: $(GSDLLIBOBJECTS)
|
---|
| 70 | rm -f gsdllib.a
|
---|
| 71 | $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
|
---|
| 72 | $(RANLIB) gsdllib.a
|
---|
| 73 |
|
---|
| 74 | clean:
|
---|
[5545] | 75 | rm -f $(OBJECTS) gsdllib.a
|
---|
[5503] | 76 |
|
---|
| 77 | distclean: clean
|
---|
| 78 | rm -f Makefile
|
---|
| 79 | install:
|
---|
| 80 |
|
---|
| 81 | depend:
|
---|
| 82 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 |
|
---|