root/main/trunk/greenstone2/win32.mak @ 21377

Revision 21366, 2.9 KB (checked in by ak19, 10 years ago)

New configuration and compilation flag ENABLE_JNI added which will be disabled by default for GS2 since in general GS doesn't need mg and mgpp compiled up with jni. GS3's build.xml will need to explicitly set ENABLE_JNI to compile mg and mgpp with jni.

  • Property svn:keywords set to Author Date Id Revision
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
30APACHE_HTTPD = 0
31DEBUG = 0
32DLL = 0
33DLLDEBUG = 0
34USE_SQLITE = 1
35USE_MSSQL = 0
36USE_Z3950 = 0
37
38# by default, all indexers are enabled
39ENABLE_MG = 1
40ENABLE_MGPP = 1
41ENABLE_LUCENE = 1
42# jni is disabled by default as this is the default for GS2
43ENABLE_JNI = 0
44
45
46MDEFINES = /f win32.mak
47
48INSTALLDIRS = common-src build-src runtime-src
49
50
51MAKECMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)"
52
53!IF $(GSDL_VC4)
54MAKECMD = $(MAKECMD) GSDL_VC4=1
55!ENDIF
56!IF $(LOCAL_LIBRARY)
57MAKECMD = $(MAKECMD) LOCAL_LIBRARY=1
58!ENDIF
59!IF $(APACHE_HTTPD)
60MAKECMD = $(MAKECMD) APACHE_HTTPD=1
61!ENDIF
62!IF $(DEBUG)
63MAKECMD = $(MAKECMD) DEBUG=1
64!ENDIF
65!IF $(DLL)
66MAKECMD = $(MAKECMD) DLL=1
67!ENDIF
68!IF $(DLLDEBUG)
69MAKECMD = $(MAKECMD) DLLDEBUG=1
70!ENDIF
71!IF "$(USE_SQLITE)" == ""
72MAKECMD = $(MAKECMD) USE_SQLITE=1
73!ELSE
74MAKECMD = $(MAKECMD) USE_SQLITE=$(USE_SQLITE)
75!ENDIF
76!IF $(USE_MSSQL)
77MAKECMD = $(MAKECMD) USE_MSSQL=1
78!ENDIF
79!IF $(USE_Z3950)
80MAKECMD = $(MAKECMD) USE_Z3950=1
81!ENDIF
82!IF "$(ENABLE_JNI)" == ""
83MAKECMD = $(MAKECMD) ENABLE_JNI=0
84!ELSE
85MAKECMD = $(MAKECMD) ENABLE_JNI=$(ENABLE_JNI)
86!ENDIF
87!IF "$(ENABLE_MG)" == ""
88MAKECMD = $(MAKECMD) ENABLE_MG=1
89!ELSE
90MAKECMD = $(MAKECMD) ENABLE_MG=$(ENABLE_MG)
91!ENDIF
92!IF "$(ENABLE_MGPP)" == ""
93MAKECMD = $(MAKECMD) ENABLE_MGPP=1
94!ELSE
95MAKECMD = $(MAKECMD) ENABLE_MGPP=$(ENABLE_MGPP)
96!ENDIF
97!IF "$(ENABLE_LUCENE)" == ""
98MAKECMD = $(MAKECMD) ENABLE_LUCENE=1
99!ELSE
100MAKECMD = $(MAKECMD) ENABLE_LUCENE=$(ENABLE_LUCENE)
101!ENDIF
102
103MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
104
105all: win32.mak $(INSTALLDIRS)
106
107install: win32.mak $(INSTALLDIRS)
108
109clean:
110    cd common-src
111    $(MAKECLEANCMD)
112    cd "$(GSDLHOME)"
113    cd build-src
114    $(MAKECLEANCMD)
115    cd "$(GSDLHOME)"
116    cd runtime-src
117    $(MAKECLEANCMD)
118    cd "$(GSDLHOME)"
119
120$(INSTALLDIRS): FORCE
121    cd "$@"
122    $(MAKECMD)
123    $(MAKECMD) install
124    cd "$(GSDLHOME)"
125
126FORCE:
127
Note: See TracBrowser for help on using the browser.