source: main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/win32.mak@ 21356

Last change on this file since 21356 was 19525, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

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