source: main/trunk/gs2build/win32.mak@ 32157

Last change on this file since 32157 was 21436, checked in by ak19, 14 years ago

Better way of setting the ENABLE_indexer and USE_SQLITE and ENABLE_JNI variables in the windows makefiles. This file now is the same as GS2's win32.mak.

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