[552] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
[558] | 3 | # Makefile -- Makefile for hashfile
|
---|
| 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.
|
---|
[552] | 7 | #
|
---|
[558] | 8 | # Copyright (C) 1999 Rodger McNab, Stefan Boddie
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
[552] | 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 | # @(#)Makefile.in 1.3 16 Mar 1994
|
---|
| 26 | #
|
---|
| 27 | ###########################################################################
|
---|
| 28 |
|
---|
| 29 |
|
---|
| 30 | AR = ar
|
---|
| 31 | CC = @CC@
|
---|
| 32 | CCFLAGS = -Wall @CFLAGS@
|
---|
| 33 | DEFS = @DEFS@
|
---|
| 34 | RANLIB = @RANLIB@
|
---|
| 35 | INCLUDES = -I../../lib
|
---|
| 36 | LDFLAGS =
|
---|
| 37 | LIBS = ../../lib/gsdllib.a
|
---|
[558] | 38 | GSDLOS = @gsdlos@
|
---|
[552] | 39 |
|
---|
| 40 |
|
---|
| 41 | COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
|
---|
| 42 | LINK = $(CC) $(LDFLAGS) -o $@
|
---|
| 43 |
|
---|
| 44 | .SUFFIXES:
|
---|
| 45 | .SUFFIXES: .c .o
|
---|
| 46 | .c.o:
|
---|
| 47 | $(COMPILE) $<
|
---|
| 48 |
|
---|
| 49 | .SUFFIXES: .cpp .o
|
---|
| 50 | .cpp.o:
|
---|
| 51 | $(COMPILE) $<
|
---|
| 52 |
|
---|
| 53 |
|
---|
| 54 | HEADERS =
|
---|
| 55 |
|
---|
| 56 | SOURCES = hashfile.cpp
|
---|
| 57 |
|
---|
| 58 | OBJECTS = hashfile.o
|
---|
| 59 |
|
---|
| 60 | EXEC = hashfile
|
---|
| 61 |
|
---|
| 62 | all : $(EXEC)
|
---|
| 63 |
|
---|
| 64 | install: $(EXEC)
|
---|
[1004] | 65 | install -d ../../bin/$(GSDLOS)
|
---|
| 66 | install -m 755 -s $(EXEC) ../../bin/$(GSDLOS)
|
---|
[552] | 67 |
|
---|
[992] | 68 | distclean:
|
---|
| 69 | rm -f $(OBJECTS) $(EXEC) Makefile
|
---|
| 70 |
|
---|
[552] | 71 | clean:
|
---|
| 72 | rm -f $(OBJECTS) $(EXEC)
|
---|
| 73 |
|
---|
| 74 | depend:
|
---|
| 75 | makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
---|
| 79 |
|
---|
| 80 | HASHFILE_OBJS = hashfile.o
|
---|
| 81 |
|
---|
| 82 | hashfile: $(HASHFILE_OBJS) $(LIBS)
|
---|
| 83 | $(LINK) $(HASHFILE_OBJS) $(LIBS)
|
---|