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

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

Windows support for new sub-directories

File size: 1.9 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
36
37COMPILEDIRS = src\hashfile src\phind\generate
38
39INSTALLDIRS = src\hashfile src\phind\generate
40
41
42PACKAGEDIRS =
43
44
45MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
46
47!IF $(GSDL_VC4)
48MAKECMD = $(MAKECMD) GSDL_VC4=1
49!ENDIF
50!IF $(DLL)
51MAKECMD = $(MAKECMD) DLL=1
52!ENDIF
53!IF $(DLLDEBUG)
54MAKECMD = $(MAKECMD) DLLDEBUG=1
55!ENDIF
56
57MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
58
59all: win32.mak $(PACKAGEDIRS) $(COMPILEDIRS) $(INSTALLDIRS)
60
61install: win32.mak $(INSTALLDIRS)
62
63clean:
64 cd src\phind\generate
65 $(MAKECLEANCMD)
66 cd "$(GSDLHOME)"
67 cd src\hashfile
68 $(MAKECLEANCMD)
69 cd "$(GSDLHOME)"
70
71$(COMPILEDIRS): FORCE
72 cd "$@"
73 $(MAKECMD)
74 cd "$(GSDLHOME)"
75
76$(INSTALLDIRS): FORCE
77 cd "$@"
78 $(MAKECMD)
79 $(MAKECMD) install
80 cd "$(GSDLHOME)"
81
82FORCE:
83
Note: See TracBrowser for help on using the repository browser.