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

Last change on this file since 21378 was 21378, checked in by ak19, 12 years ago

The win32.mak of gs2build and greenstone2 are the same, so that they can just be obtained from one source in future.

File size: 3.2 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
41# by default, all indexers are enabled
42ENABLE_MG = 1
43ENABLE_MGPP = 1
44ENABLE_LUCENE = 1
45# jni is disabled by default as this is the default for GS2. GS3 will set this explicitly
46ENABLE_JNI = 0
47
48
49MDEFINES = /f win32.mak
50
51INSTALLDIRS = common-src build-src
52!IF EXIST ("runtime-src")
53INSTALLDIRS = $(INSTALLDIRS) runtime-src
54!ENDIF
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=1
78!ELSE
79MAKECMD = $(MAKECMD) USE_SQLITE=$(USE_SQLITE)
80!ENDIF
81!IF $(USE_MSSQL)
82MAKECMD = $(MAKECMD) USE_MSSQL=1
83!ENDIF
84!IF $(USE_Z3950)
85MAKECMD = $(MAKECMD) USE_Z3950=1
86!ENDIF
87!IF "$(ENABLE_JNI)" == ""
88MAKECMD = $(MAKECMD) ENABLE_JNI=0
89!ELSE
90MAKECMD = $(MAKECMD) ENABLE_JNI=$(ENABLE_JNI)
91!ENDIF
92!IF "$(ENABLE_MG)" == ""
93MAKECMD = $(MAKECMD) ENABLE_MG=1
94!ELSE
95MAKECMD = $(MAKECMD) ENABLE_MG=$(ENABLE_MG)
96!ENDIF
97!IF "$(ENABLE_MGPP)" == ""
98MAKECMD = $(MAKECMD) ENABLE_MGPP=1
99!ELSE
100MAKECMD = $(MAKECMD) ENABLE_MGPP=$(ENABLE_MGPP)
101!ENDIF
102!IF "$(ENABLE_LUCENE)" == ""
103MAKECMD = $(MAKECMD) ENABLE_LUCENE=1
104!ELSE
105MAKECMD = $(MAKECMD) ENABLE_LUCENE=$(ENABLE_LUCENE)
106!ENDIF
107
108MAKECLEANCMD = $(MAKE) $(MDEFINES) GSDLHOME="$(GSDLHOME)" clean
109
110all: win32.mak $(INSTALLDIRS)
111
112install: win32.mak $(INSTALLDIRS)
113
114clean:
115 cd common-src
116 $(MAKECLEANCMD)
117 cd "$(GSDLHOME)"
118 cd build-src
119 $(MAKECLEANCMD)
120 cd "$(GSDLHOME)"
121!IF EXIST ("runtime-src")
122 cd runtime-src
123 $(MAKECLEANCMD)
124 cd "$(GSDLHOME)"
125!ENDIF
126
127$(INSTALLDIRS): FORCE
128 cd "$@"
129 $(MAKECMD)
130 $(MAKECMD) install
131 cd "$(GSDLHOME)"
132
133FORCE:
134
Note: See TracBrowser for help on using the repository browser.