root/main/trunk/greenstone2/common-src/src/getpw/win32.mak @ 26651

Revision 22960, 2.4 KB (checked in by ak19, 9 years ago)

Added in DEBUG flags to LDFLAGS where missing

  • Property svn:executable set to *
Line 
1###########################################################################
2#
3# win32 makefile -- getgw
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-2008  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
27COMMON_DIR = ..\..
28
29COMMON_PACKAGES_DIR = $(COMMON_DIR)\packages
30
31
32GSDL_VC4 = 0
33LOCAL_LIBRARY = 0
34DEBUG = 0
35DLL = 0
36DLLDEBUG = 0
37
38!IF $(DEBUG)
39CXXFLAGS = -DEBUG -Z7 /errorReport:prompt
40LDFLAGS = -DEBUG -Z7 /errorReport:prompt
41!ELSE
42CXXFLAGS =
43LDFLAGS =
44!ENDIF
45
46!IF $(GSDL_VC4)
47CXXFLAGS = $(CXXFLAGS) -GX
48!ELSE
49CXXFLAGS = $(CXXFLAGS) -EHsc
50!ENDIF
51
52!IF $(DLL)
53CXXFLAGS = $(CXXFLAGS) -MD
54!ELSE
55!IF ($(DLLDEBUG))
56CXXFLAGS = $(CXXFLAGS) -MDd
57!ENDIF
58!ENDIF
59
60CC = cl
61DEFS = -D__WIN32__ -DHAVE_CONFIG_H -DPARADOCNUM -D_LITTLE_ENDIAN -DSHORT_SUFFIX -D_CRT_SECURE_NO_DEPRECATE
62INCLUDES = -I"$(COMMON_DIR)" -I"$(COMMON_DIR)\src\lib" -I"$(COMMON_DIR)\packages\windows\crypt\crypt"
63LIBS = "$(COMMON_DIR)\src\lib\gsdllib.lib" "$(COMMON_DIR)\packages\windows\crypt\crypt\crypt.lib"
64
65
66!IF $(GSDL_VC4)
67DEFS = $(DEFS) -DGSDL_NAMESPACE_BROKEN -DGSDL_USE_IOS_H -D__STL_NO_NEW_IOSTREAMS
68INCLUDES = $(INCLUDES) -I"$(COMMON_PACKAGES_DIR)\windows\stlport\stlport"
69!ENDIF
70
71!IF $(LOCAL_LIBRARY)
72DEFS = $(DEFS) -DGSDL_LOCAL_LIBRARY
73!ENDIF
74
75
76COMPILE = $(CC) -nologo -c $(CXXFLAGS) $(DEFS) $(INCLUDES)
77LINK = $(CC) -nologo $(LDFLAGS)
78
79.SUFFIXES:
80.SUFFIXES: .cpp .obj
81.cpp.obj:
82    $(COMPILE) $<
83
84
85SOURCES = getpw.cpp
86OBJECTS = getpw.obj
87EXEC    = getpw.exe
88
89all: $(EXEC)
90
91install:
92    copy $(EXEC) "$(GSDLHOME)\bin\windows"
93
94clean:
95    del *.obj
96    del $(EXEC)
97
98getpw.exe: $(OBJECTS)
99    $(LINK) $(OBJECTS) $(LIBS)
100
101
102
103
Note: See TracBrowser for help on using the browser.