source: gsdl/trunk/common-src/src/getpw/win32.mak@ 19523

Last change on this file since 19523 was 19523, 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.

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