source: gsdl/trunk/win32.mak@ 18183

Last change on this file since 18183 was 18076, checked in by oranfry, 15 years ago

use sqlite by default

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1###########################################################################
2#
3# win32 makefile -- gsdl
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 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
27GSDLHOME = $(MAKEDIR)
28GSDL_VC4 = 0
29LOCAL_LIBRARY = 0
30DLL = 0
31DLLDEBUG = 0
32USE_SQLITE = 1
33USE_MSSQL = 0
34USE_Z3950 = 0
35
36MDEFINES = /f win32.mak
37
38INSTALLDIRS = common-src build-src runtime-src
39
40
41MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
42
43!IF $(GSDL_VC4)
44MAKECMD = $(MAKECMD) GSDL_VC4=1
45!ENDIF
46!IF $(LOCAL_LIBRARY)
47MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
48!ENDIF
49!IF $(DLL)
50MAKECMD = $(MAKECMD) DLL=1
51!ENDIF
52!IF $(DLLDEBUG)
53MAKECMD = $(MAKECMD) DLLDEBUG=1
54!ENDIF
55!IF $(USE_SQLITE)
56MAKECMD = $(MAKECMD) USE_SQLITE=1
57!ENDIF
58!IF $(USE_MSSQL)
59MAKECMD = $(MAKECMD) USE_MSSQL=1
60!ENDIF
61!IF $(USE_Z3950)
62MAKECMD = $(MAKECMD) USE_Z3950=1
63!ENDIF
64
65MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
66
67all: win32.mak $(INSTALLDIRS)
68
69install: win32.mak $(INSTALLDIRS)
70
71clean:
72 cd common-src
73 $(MAKECLEANCMD)
74 cd "$(GSDLHOME)"
75 cd build-src
76 $(MAKECLEANCMD)
77 cd "$(GSDLHOME)"
78 cd runtime-src
79 $(MAKECLEANCMD)
80 cd "$(GSDLHOME)"
81
82$(INSTALLDIRS): FORCE
83 cd "$@"
84 $(MAKECMD)
85 $(MAKECMD) install
86 cd "$(GSDLHOME)"
87
88FORCE:
89
Note: See TracBrowser for help on using the repository browser.