[18058] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # win32 makefile -- gdbm
|
---|
| 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 |
|
---|
[19525] | 27 | DEBUG = 0
|
---|
| 28 |
|
---|
[18058] | 29 | AR = lib
|
---|
| 30 | CC = cl
|
---|
[19525] | 31 |
|
---|
| 32 |
|
---|
| 33 | !IF $(DEBUG)
|
---|
| 34 | CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
|
---|
[22960] | 35 | LDFLAGS = -DEBUG -Z7 /errorReport:prompt
|
---|
[19525] | 36 | !ELSE
|
---|
| 37 | CXXFLAGS =
|
---|
[22960] | 38 | LDFLAGS =
|
---|
[19525] | 39 | !ENDIF
|
---|
| 40 |
|
---|
[18058] | 41 | DEFS = -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
|
---|
| 42 | INCLUDES = -I"windows"
|
---|
| 43 |
|
---|
[19525] | 44 | COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
|
---|
[18058] | 45 |
|
---|
| 46 | o = .obj
|
---|
| 47 |
|
---|
| 48 | .SUFFIXES:
|
---|
| 49 | .SUFFIXES: .c $o
|
---|
| 50 |
|
---|
| 51 | .c$o:
|
---|
| 52 | $(COMPILE) $<
|
---|
| 53 |
|
---|
| 54 | HEADERS = gdbmdefs.h extern.h gdbmerrno.h systems.h gdbmconst.h \
|
---|
| 55 | proto.h
|
---|
| 56 |
|
---|
| 57 | SOURCES = gdbmopen.c gdbmdelete.c gdbmfetch.c gdbmstore.c gdbmclose.c \
|
---|
| 58 | gdbmreorg.c gdbmseq.c gdbmsync.c gdbmerrno.c gdbmexists.c gdbmsetopt.c \
|
---|
| 59 | bucket.c falloc.c findkey.c global.c hash.c update.c \
|
---|
| 60 | version.c gsdlmods.c
|
---|
| 61 |
|
---|
| 62 | OBJECTS = gdbmopen$o gdbmdelete$o gdbmfetch$o gdbmstore$o gdbmclose$o \
|
---|
| 63 | gdbmreorg$o gdbmseq$o gdbmsync$o gdbmerrno$o gdbmexists$o gdbmsetopt$o \
|
---|
| 64 | bucket$o falloc$o findkey$o global$o hash$o update$o \
|
---|
| 65 | version$o gsdlmods$o
|
---|
| 66 |
|
---|
| 67 | all: gdbm.lib
|
---|
| 68 |
|
---|
| 69 | gdbm.lib: $(OBJECTS)
|
---|
| 70 | if EXIST gdbm.lib del gdbm.lib
|
---|
| 71 | $(AR) -nologo /out:gdbm.lib $(OBJECTS)
|
---|
| 72 |
|
---|
| 73 | install:
|
---|
| 74 |
|
---|
| 75 | clean:
|
---|
| 76 | del gdbm.lib
|
---|
| 77 | del *$o |
---|