source: gsdl/trunk/win32.mak@ 16574

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

Adjustments to Windows makes file for new common-src, build-src and runtime-src file structure

  • 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 = 0
33USE_Z3950 = 0
34
35MDEFINES = /f win32.mak
36
37COMPILEDIRS = common-src build-src runtime-src
38
39INSTALLDIRS = common-src build-src runtime-src
40
41
42MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
43
44!IF $(GSDL_VC4)
45MAKECMD = $(MAKECMD) GSDL_VC4=1
46!ENDIF
47!IF $(LOCAL_LIBRARY)
48MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
49!ENDIF
50!IF $(DLL)
51MAKECMD = $(MAKECMD) DLL=1
52!ENDIF
53!IF $(DLLDEBUG)
54MAKECMD = $(MAKECMD) DLLDEBUG=1
55!ENDIF
56!IF $(USE_SQLITE)
57MAKECMD = $(MAKECMD) USE_SQLITE=1
58!ENDIF
59!IF $(USE_Z3950)
60MAKECMD = $(MAKECMD) USE_Z3950=1
61!ENDIF
62
63MAKECLEANCMD = $(MAKE) $(MDEFINES) clean
64
65all: win32.mak $(COMPILEDIRS) $(INSTALLDIRS)
66
67install: win32.mak $(INSTALLDIRS)
68
69clean:
70 cd common-src
71 $(MAKECLEANCMD)
72 cd "$(GSDLHOME)"
73 cd build-src
74 $(MAKECLEANCMD)
75 cd "$(GSDLHOME)"
76 cd runtime-src
77 $(MAKECLEANCMD)
78 cd "$(GSDLHOME)"
79
80$(COMPILEDIRS): FORCE
81 cd "$@"
82 $(MAKECMD)
83 cd "$(GSDLHOME)"
84
85$(INSTALLDIRS): FORCE
86 cd "$@"
87 $(MAKECMD)
88 $(MAKECMD) install
89 cd "$(GSDLHOME)"
90
91FORCE:
92
Note: See TracBrowser for help on using the repository browser.