root/main/trunk/gs2build/win32.mak @ 21345

Revision 21345, 2.2 KB (checked in by ak19, 11 years ago)

Added enable-indexer processing.

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
35# by default, all indexers are enabled
36ENABLE_MG = 1
37ENABLE_MGPP = 1
38ENABLE_LUCENE = 1
39
40MDEFINES = /f win32.mak
41
42INSTALLDIRS = common-src build-src
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!IF $(USE_SQLITE)
57MAKECMD = $(MAKECMD) USE_SQLITE=1
58!ENDIF
59!IF "$(ENABLE_MG)" == ""
60MAKECMD = $(MAKECMD) ENABLE_MG=1
61!ELSE
62MAKECMD = $(MAKECMD) ENABLE_MG=$(ENABLE_MG)
63!ENDIF
64!IF "$(ENABLE_MGPP)" == ""
65MAKECMD = $(MAKECMD) ENABLE_MGPP=1
66!ELSE
67MAKECMD = $(MAKECMD) ENABLE_MGPP=$(ENABLE_MGPP)
68!ENDIF
69!IF "$(ENABLE_LUCENE)" == ""
70MAKECMD = $(MAKECMD) ENABLE_LUCENE=1
71!ELSE
72MAKECMD = $(MAKECMD) ENABLE_LUCENE=$(ENABLE_LUCENE)
73!ENDIF
74
75MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
76
77all: win32.mak $(INSTALLDIRS)
78
79install: win32.mak $(INSTALLDIRS)
80
81clean:
82    cd common-src
83    $(MAKECLEANCMD)
84    cd "$(GSDLHOME)"
85    cd build-src
86    $(MAKECLEANCMD)
87    cd "$(GSDLHOME)"
88
89$(INSTALLDIRS): FORCE
90    cd "$@"
91    $(MAKECMD)
92    $(MAKECMD) install
93    cd "$(GSDLHOME)"
94
95FORCE:
96
Note: See TracBrowser for help on using the browser.