source: main/trunk/gs2-core/common-src/src/lib/win32.mak@ 21699

Last change on this file since 21699 was 21699, checked in by mdewsnip, 14 years ago

Improvements to win32.mak files to always include paths in quotes.

File size: 2.1 KB
Line 
1###########################################################################
2#
3# win32.mak -- Windows Makefile for common-src\src\lib
4#
5# A component of the Greenstone digital library software
6# from the New Zealand Digital Library Project at the
7# University of Waikato, New Zealand.
8#
9# Copyright (C) 1999-2010 The New Zealand Digital Library Project
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
27
28GSDL_DIR = $(GSDLHOME)
29
30
31# Libraries compiled
32LIBRARIES = gsdllib.lib
33
34# Library: gsdllib.lib
35LIBGSDL_CPPFLAGS =
36
37# Objects for gsdllib.lib
38LIBGSDL_OBJECTS = \
39 cfgread.obj \
40 cnfgable.obj \
41 cnfgator.obj \
42 dbclass.obj \
43 display.obj \
44 fileutil.obj \
45 gsdlsitecfg.obj \
46 gsdltimes.obj \
47 gsdltools.obj \
48 gsdlunicode.obj \
49 infodbclass.obj \
50 md5.obj \
51 OIDtools.obj \
52 phrases.obj \
53 text_t.obj \
54 unitool.obj
55
56
57# Option: SQLite support
58!IF $(USE_SQLITE)
59LIBGSDL_CPPFLAGS = -DUSE_SQLITE $(LIBGSDL_CPPFLAGS) -I"$(GSDL_DIR)\common-src\packages\sqlite\include"
60LIBGSDL_OBJECTS = $(LIBGSDL_OBJECTS) sqlitedbclass.obj
61!ENDIF
62
63
64COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBGSDL_CPPFLAGS)
65LINK = cl -nologo -Fe"$@"
66
67.SUFFIXES:
68.SUFFIXES: .cpp .obj
69
70.cpp.obj:
71 $(COMPILE) $<
72
73
74gsdllib.lib: $(LIBGSDL_OBJECTS)
75 if EXIST gsdllib.lib del gsdllib.lib
76 lib -nologo /out:gsdllib.lib $(LIBGSDL_OBJECTS)
77
78all: $(LIBRARIES)
79
80install: $(LIBRARIES)
81
82distclean:
83 del *.obj $(LIBRARIES) win32.mak
84
85clean:
86 del *.obj $(LIBRARIES)
Note: See TracBrowser for help on using the repository browser.