source: gsdl/trunk/build-src/win32.mak@ 16577

Last change on this file since 16577 was 16577, checked in by davidb, 16 years ago

Minor tweaks to windows make files

File size: 1.8 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 = $(GSDLHOME)
28BUILDHOME = $(MAKEDIR)
29
30GSDL_VC4 = 0
31DLL = 0
32DLLDEBUG = 0
33
34MDEFINES = /f win32.mak
35
36INSTALLDIRS = src\hashfile src\phind\generate
37
38
39MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
40
41!IF $(GSDL_VC4)
42MAKECMD = $(MAKECMD) GSDL_VC4=1
43!ENDIF
44!IF $(DLL)
45MAKECMD = $(MAKECMD) DLL=1
46!ENDIF
47!IF $(DLLDEBUG)
48MAKECMD = $(MAKECMD) DLLDEBUG=1
49!ENDIF
50
51MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
52
53all: win32.mak $(INSTALLDIRS)
54
55install: win32.mak $(INSTALLDIRS)
56
57clean:
58 cd "$(BUILDHOME)"
59 cd src\phind\generate
60 $(MAKECLEANCMD)
61 cd "$(BUILDHOME)"
62 cd src\hashfile
63 $(MAKECLEANCMD)
64 cd "$(GSDLHOME)"
65
66$(INSTALLDIRS): FORCE
67 cd "$(BUILDHOME)"
68 cd "$@"
69 $(MAKECMD)
70 $(MAKECMD) install
71 cd "$(GSDLHOME)"
72
73FORCE:
74
Note: See TracBrowser for help on using the repository browser.