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

Last change on this file since 19275 was 19275, checked in by davidb, 15 years ago

Initial support for Windows

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