1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir 25cdf0e10cSrcweir.IF "$(SOLAR_JAVA)"!="" 26cdf0e10cSrcweir 27cdf0e10cSrcweirANT_LIB*:=$(ANT_HOME)/lib 28cdf0e10cSrcweir 29cdf0e10cSrcweirANT_CLASSPATH:=$(ANT_LIB)/xercesImpl.jar$(PATH_SEPERATOR)$(ANT_LIB)/xml-apis.jar$(PATH_SEPERATOR)$(ANT_LIB)/ant.jar 30cdf0e10cSrcweir 31cdf0e10cSrcweir# PATH_SEPERATOR won't work here as it is defined 32cdf0e10cSrcweir# as ; for wondows (all shells) 33cdf0e10cSrcweir#PATH!:=$(ANT_HOME)/bin$(PATH_SEPERATOR)$(PATH) 34cdf0e10cSrcweirPATH!:=$(ANT_HOME)/bin:$(PATH) 35cdf0e10cSrcweir 36cdf0e10cSrcweirANT*:=$(ANT_HOME)/bin/ant 37cdf0e10cSrcweirANT_BUILDFILE*=build.xml 38cdf0e10cSrcweir 39cdf0e10cSrcweir.IF "$(ANT_DEBUG)"=="" 40cdf0e10cSrcweir.IF "$(debug)"=="" 41cdf0e10cSrcweirANT_DEBUG=off 42cdf0e10cSrcweir.ELSE 43cdf0e10cSrcweirANT_DEBUG=on 44cdf0e10cSrcweir.ENDIF 45cdf0e10cSrcweir.ENDIF 46cdf0e10cSrcweir 47cdf0e10cSrcweir.IF "$(ANT_OPT)"=="" 48cdf0e10cSrcweir.IF "$(optimize)"=="" 49cdf0e10cSrcweirANT_OPT=off 50cdf0e10cSrcweir.ELSE 51cdf0e10cSrcweirANT_OPT=on 52cdf0e10cSrcweir.ENDIF 53cdf0e10cSrcweir.ENDIF 54cdf0e10cSrcweir 55cdf0e10cSrcweir.IF "$(JDK)"=="gcj" 56cdf0e10cSrcweirJAVA_HOME= 57cdf0e10cSrcweir.EXPORT : JAVA_HOME 58cdf0e10cSrcweir.ENDIF 59cdf0e10cSrcweir 60cdf0e10cSrcweir.IF "$(JAVACISGCJ)" == "yes" 61cdf0e10cSrcweirANT_FLAGS!:=-Dbuild.compiler=gcj -Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) \ 62cdf0e10cSrcweir -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) \ 63cdf0e10cSrcweir -Dproext="$(PROEXT)" -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) \ 64cdf0e10cSrcweir -Dsolar.doc=$(SOLARDOCDIR) -Dcommon.jar=$(SOLARCOMMONBINDIR) \ 65cdf0e10cSrcweir -Dcommon.doc=$(SOLARCOMMONDOCDIR) -Dsolar.sourceversion=$(SOURCEVERSION) \ 66cdf0e10cSrcweir -Dsolar.lastminor=$(LAST_MINOR) -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs 67cdf0e10cSrcweir.ELSE 68cdf0e10cSrcweirANT_FLAGS!:=-Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) \ 69cdf0e10cSrcweir -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext="$(PROEXT)" \ 70cdf0e10cSrcweir -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) \ 71cdf0e10cSrcweir -Dcommon.jar=$(SOLARCOMMONBINDIR) -Dcommon.doc=$(SOLARCOMMONDOCDIR) \ 72cdf0e10cSrcweir -Dsolar.sourceversion=$(SOURCEVERSION) -Dsolar.lastminor=$(LAST_MINOR) \ 73cdf0e10cSrcweir -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs 74cdf0e10cSrcweir.ENDIF 75cdf0e10cSrcweir.ELSE # No java 76cdf0e10cSrcweirANT= 77cdf0e10cSrcweirANT_FLAGS= 78cdf0e10cSrcweir.ENDIF 79cdf0e10cSrcweir 80cdf0e10cSrcweir.IF "$(WITH_LANG)"!="" 81cdf0e10cSrcweirANT_FLAGS+=-Dsolar.langs="$(WITH_LANG)" -Dsolar.localized="true" 82cdf0e10cSrcweir.ENDIF # "$(WITH_LANG)"!="" 83cdf0e10cSrcweir 84