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

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

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