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

Revision 21372, 2.5 KB (checked in by ak19, 11 years ago)

ENABLE_JNI switch added in

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# jni is disabled by default for GS2, GS3 will set this explicitly
40ENABLE_JNI = 0
41
42MDEFINES = /f win32.mak
43
44INSTALLDIRS = common-src build-src
45
46
47MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
48
49!IF $(GSDL_VC4)
50MAKECMD = $(MAKECMD) GSDL_VC4=1
51!ENDIF
52!IF $(DLL)
53MAKECMD = $(MAKECMD) DLL=1
54!ENDIF
55!IF $(DLLDEBUG)
56MAKECMD = $(MAKECMD) DLLDEBUG=1
57!ENDIF
58!IF "$(USE_SQLITE)" == ""
59MAKECMD = $(MAKECMD) USE_SQLITE=1
60!ELSE
61MAKECMD = $(MAKECMD) USE_SQLITE=$(USE_SQLITE)
62!ENDIF
63!IF "$(ENABLE_JNI)" == ""
64MAKECMD = $(MAKECMD) ENABLE_JNI=0
65!ELSE
66MAKECMD = $(MAKECMD) ENABLE_JNI=$(ENABLE_JNI)
67!ENDIF
68!IF "$(ENABLE_MG)" == ""
69MAKECMD = $(MAKECMD) ENABLE_MG=1
70!ELSE
71MAKECMD = $(MAKECMD) ENABLE_MG=$(ENABLE_MG)
72!ENDIF
73!IF "$(ENABLE_MGPP)" == ""
74MAKECMD = $(MAKECMD) ENABLE_MGPP=1
75!ELSE
76MAKECMD = $(MAKECMD) ENABLE_MGPP=$(ENABLE_MGPP)
77!ENDIF
78!IF "$(ENABLE_LUCENE)" == ""
79MAKECMD = $(MAKECMD) ENABLE_LUCENE=1
80!ELSE
81MAKECMD = $(MAKECMD) ENABLE_LUCENE=$(ENABLE_LUCENE)
82!ENDIF
83
84MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
85
86all: win32.mak $(INSTALLDIRS)
87
88install: win32.mak $(INSTALLDIRS)
89
90clean:
91    cd common-src
92    $(MAKECLEANCMD)
93    cd "$(GSDLHOME)"
94    cd build-src
95    $(MAKECLEANCMD)
96    cd "$(GSDLHOME)"
97
98$(INSTALLDIRS): FORCE
99    cd "$@"
100    $(MAKECMD)
101    $(MAKECMD) install
102    cd "$(GSDLHOME)"
103
104FORCE:
105
Note: See TracBrowser for help on using the browser.