source: gsdl/trunk/win32.mak@ 18622

Last change on this file since 18622 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
RevLine 
[1001]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
[2338]27GSDLHOME = $(MAKEDIR)
[11256]28GSDL_VC4 = 0
[2338]29LOCAL_LIBRARY = 0
[7060]30DLL = 0
31DLLDEBUG = 0
[18076]32USE_SQLITE = 1
[17476]33USE_MSSQL = 0
[11554]34USE_Z3950 = 0
[7060]35
36MDEFINES = /f win32.mak
[1001]37
[16574]38INSTALLDIRS = common-src build-src runtime-src
[15818]39
[1001]40
[16574]41MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
[15820]42
[11257]43!IF $(GSDL_VC4)
44MAKECMD = $(MAKECMD) GSDL_VC4=1
[2338]45!ENDIF
46!IF $(LOCAL_LIBRARY)
47MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
48!ENDIF
[7060]49!IF $(DLL)
50MAKECMD = $(MAKECMD) DLL=1
51!ENDIF
52!IF $(DLLDEBUG)
53MAKECMD = $(MAKECMD) DLLDEBUG=1
54!ENDIF
[15817]55!IF $(USE_SQLITE)
56MAKECMD = $(MAKECMD) USE_SQLITE=1
57!ENDIF
[17476]58!IF $(USE_MSSQL)
59MAKECMD = $(MAKECMD) USE_MSSQL=1
60!ENDIF
[11554]61!IF $(USE_Z3950)
62MAKECMD = $(MAKECMD) USE_Z3950=1
63!ENDIF
[1001]64
[16925]65MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
[9990]66
[16577]67all: win32.mak $(INSTALLDIRS)
[1001]68
[16574]69install: win32.mak $(INSTALLDIRS)
[2338]70
[9990]71clean:
[16574]72 cd common-src
[9990]73 $(MAKECLEANCMD)
74 cd "$(GSDLHOME)"
[16574]75 cd build-src
[9990]76 $(MAKECLEANCMD)
77 cd "$(GSDLHOME)"
[16574]78 cd runtime-src
[11188]79 $(MAKECLEANCMD)
80 cd "$(GSDLHOME)"
[9990]81
[2338]82$(INSTALLDIRS): FORCE
83 cd "$@"
84 $(MAKECMD)
85 $(MAKECMD) install
86 cd "$(GSDLHOME)"
87
88FORCE:
[11554]89
Note: See TracBrowser for help on using the repository browser.