source: main/trunk/greenstone2/build-src/src/hashfile/win32.mak@ 26820

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

Added in DEBUG flags to LDFLAGS where missing

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1###########################################################################
2#
3# win32 makefile -- 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.
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
27GSDLHOME = ..\..\..
28GSDL_VC4 = 0
29DEBUG = 0
30
31AR = lib
32CC = cl
33
34!IF $(DEBUG)
35CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
36LDFLAGS = -DEBUG -Z7 /errorReport:prompt
37!ELSE
38CXXFLAGS =
39LDFLAGS =
40!ENDIF
41
42!IF $(GSDL_VC4)
43CXXFLAGS = $(CXXFLAGS) -GX
44!ELSE
45CXXFLAGS = $(CXXFLAGS) -EHsc
46!ENDIF
47
48DEFS = -DHAVE_CONFIG_H -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
49INCLUDES = -I"$(GSDLHOME)\src\hashfile"
50LIBS =
51
52COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
53LINK = $(CC) -nologo $(LDFLAGS)
54
55.SUFFIXES:
56.SUFFIXES: .cpp .obj
57.cpp.obj:
58 $(COMPILE) $<
59
60ANSI2KNR =
61o = .obj
62e = .exe
63
64HEADERS =
65
66SOURCES = hashfile.cpp
67
68OBJECTS = hashfile$o
69
70EXEC = hashfile$e
71
72all : $(EXEC)
73
74install: $(EXEC)
75 if NOT EXIST "$(GSDLHOME)\bin\windows" mkdir "$(GSDLHOME)\bin\windows"
76 copy $(EXEC) "$(GSDLHOME)\bin\windows"
77
78clean:
79 del *$o
80 del $(EXEC)
81
82HASHFILE_OBJS = hashfile$o
83
84hashfile$e: $(HASHFILE_OBJS) $(LIBS)
85 $(LINK) $(HASHFILE_OBJS) $(LIBS)
Note: See TracBrowser for help on using the repository browser.