1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28 29.IF "$(SOLAR_JAVA)"!="" 30 31ANT_LIB*:=$(ANT_HOME)/lib 32 33ANT_CLASSPATH:=$(ANT_LIB)/xercesImpl.jar$(PATH_SEPERATOR)$(ANT_LIB)/xml-apis.jar$(PATH_SEPERATOR)$(ANT_LIB)/ant.jar 34 35# PATH_SEPERATOR won't work here as it is defined 36# as ; for wondows (all shells) 37#PATH!:=$(ANT_HOME)/bin$(PATH_SEPERATOR)$(PATH) 38PATH!:=$(ANT_HOME)/bin:$(PATH) 39 40ANT*:=$(ANT_HOME)/bin/ant 41ANT_BUILDFILE*=build.xml 42 43.IF "$(ANT_DEBUG)"=="" 44.IF "$(debug)"=="" 45ANT_DEBUG=off 46.ELSE 47ANT_DEBUG=on 48.ENDIF 49.ENDIF 50 51.IF "$(ANT_OPT)"=="" 52.IF "$(optimize)"=="" 53ANT_OPT=off 54.ELSE 55ANT_OPT=on 56.ENDIF 57.ENDIF 58 59.IF "$(JDK)"=="gcj" 60JAVA_HOME= 61.EXPORT : JAVA_HOME 62.ENDIF 63 64.IF "$(JAVACISGCJ)" == "yes" 65ANT_FLAGS!:=-Dbuild.compiler=gcj -Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) \ 66 -Doptimize=$(ANT_OPT) -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) \ 67 -Dproext="$(PROEXT)" -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) \ 68 -Dsolar.doc=$(SOLARDOCDIR) -Dcommon.jar=$(SOLARCOMMONBINDIR) \ 69 -Dcommon.doc=$(SOLARCOMMONDOCDIR) -Dsolar.sourceversion=$(SOURCEVERSION) \ 70 -Dsolar.lastminor=$(LAST_MINOR) -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs 71.ELSE 72ANT_FLAGS!:=-Dprj=$(PRJ) -Dprjname=$(PRJNAME) -Ddebug=$(ANT_DEBUG) -Doptimize=$(ANT_OPT) \ 73 -Dtarget=$(TARGET) -Dsolar.update=on -Dout=$(OUT) -Dinpath=$(INPATH) -Dproext="$(PROEXT)" \ 74 -Dsolar.bin=$(SOLARBINDIR) -Dsolar.jar=$(SOLARBINDIR) -Dsolar.doc=$(SOLARDOCDIR) \ 75 -Dcommon.jar=$(SOLARCOMMONBINDIR) -Dcommon.doc=$(SOLARCOMMONDOCDIR) \ 76 -Dsolar.sourceversion=$(SOURCEVERSION) -Dsolar.lastminor=$(LAST_MINOR) \ 77 -Dsolar.build=$(BUILD) -f $(ANT_BUILDFILE) $(ANT_FLAGS) -emacs 78.ENDIF 79.ELSE # No java 80ANT= 81ANT_FLAGS= 82.ENDIF 83 84.IF "$(WITH_LANG)"!="" 85ANT_FLAGS+=-Dsolar.langs="$(WITH_LANG)" -Dsolar.localized="true" 86.ENDIF # "$(WITH_LANG)"!="" 87 88