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

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

First attempt at Windows makefiles for top-level and common-src directory.

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
28# Libraries compiled
29LIBRARIES = gsdllib.lib
30
31# Library: gsdllib.lib
32LIBGSDL_CPPFLAGS =
33
34LIBGSDL_OBJECTS = \
35 cfgread.obj \
36 cnfgable.obj \
37 cnfgator.obj \
38 dbclass.obj \
39 display.obj \
40 fileutil.obj \
41 gsdlsitecfg.obj \
42 gsdltimes.obj \
43 gsdltools.obj \
44 gsdlunicode.obj \
45 infodbclass.obj \
46 md5.obj \
47 OIDtools.obj \
48 phrases.obj \
49 text_t.obj \
50 unitool.obj
51
52
53# Option: SQLite support
54!IF $(USE_SQLITE)
55LIBGSDL_CPPFLAGS = -DUSE_SQLITE $(LIBGSDL_CPPFLAGS) -I"$(GSDLHOME)\common-src\packages\sqlite\include"
56LIBGSDL_OBJECTS = $(LIBGSDL_OBJECTS) sqlitedbclass.obj
57!ENDIF
58
59
60COMPILE = cl -nologo -c -EHsc -D__WIN32__ -DXML_STATIC -D_CRT_SECURE_NO_DEPRECATE $(LIBGSDL_CPPFLAGS)
61LINK = cl -nologo -Fe"$@"
62
63.SUFFIXES:
64.SUFFIXES: .cpp .obj
65
66.cpp.obj:
67 $(COMPILE) $<
68
69
70gsdllib.lib: $(LIBGSDL_OBJECTS)
71 if EXIST gsdllib.lib del gsdllib.lib
72 lib -nologo /out:gsdllib.lib $(LIBGSDL_OBJECTS)
73
74all: $(LIBRARIES)
75
76install: $(LIBRARIES)
77
78distclean:
79 del *.obj $(LIBRARIES) win32.mak
80
81clean:
82 del *.obj $(LIBRARIES)
Note: See TracBrowser for help on using the repository browser.