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

Last change on this file since 22960 was 22960, checked in by ak19, 14 years ago

Added in DEBUG flags to LDFLAGS where missing

File size: 2.2 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
35LDFLAGS = -DEBUG -Z7 /errorReport:prompt
36!ELSE
37CXXFLAGS =
38LDFLAGS =
39!ENDIF
40
41DEFS = -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
42INCLUDES = -I"windows"
43
44COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
45
46o = .obj
47
48.SUFFIXES:
49.SUFFIXES: .c $o
50
51.c$o:
52 $(COMPILE) $<
53
54HEADERS = gdbmdefs.h extern.h gdbmerrno.h systems.h gdbmconst.h \
55 proto.h
56
57SOURCES = 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
62OBJECTS = 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
67all: gdbm.lib
68
69gdbm.lib: $(OBJECTS)
70 if EXIST gdbm.lib del gdbm.lib
71 $(AR) -nologo /out:gdbm.lib $(OBJECTS)
72
73install:
74
75clean:
76 del gdbm.lib
77 del *$o
Note: See TracBrowser for help on using the repository browser.