2003-03-27 04:48:49 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# $RCSfile: ant.mk,v $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2006-10-05 04:36:25 -05:00
|
|
|
# $Revision: 1.31 $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2006-10-05 04:36:25 -05:00
|
|
|
# last change: $Author: kz $ $Date: 2006-10-05 10:36:25 $
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# GNU Lesser General Public License Version 2.1
|
|
|
|
# =============================================
|
|
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License version 2.1, as published by the Free Software Foundation.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Lesser General Public License for more details.
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
2005-09-08 03:33:09 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
2003-03-27 04:48:49 -06:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
2001-08-27 09:16:18 -05:00
|
|
|
|
2002-04-24 08:50:48 -05:00
|
|
|
# --- Force JDK14 switch ------------------------------------------
|
|
|
|
|
|
|
|
.IF "$(USE_JDK_VERSION)" == "140"
|
|
|
|
JDK_VERSION=140
|
|
|
|
JAVA_HOME=$(JDK14PATH)
|
2004-03-17 02:32:10 -06:00
|
|
|
|
2002-04-24 08:50:48 -05:00
|
|
|
PATH!:=$(JDK14PATH)$/bin$(PATH_SEPERATOR)$(PATH)
|
|
|
|
XCLASSPATH:=$(JDK14PATH)$/jre/lib/rt.jar
|
|
|
|
CLASSPATH:=$(XCLASSPATH)
|
|
|
|
.ENDIF
|
|
|
|
|
2001-08-27 09:16:18 -05:00
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
|
|
|
|
|
|
|
|
# --- ANT build environment ---------------------------------------
|
|
|
|
|
2006-01-31 11:48:18 -06:00
|
|
|
.INCLUDE : antsettings.mk
|
2004-09-08 08:52:00 -05:00
|
|
|
|
2001-08-27 09:16:18 -05:00
|
|
|
.INCLUDE : target.mk
|
|
|
|
|
|
|
|
CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(JAVA_HOME)$/lib$/tools.jar
|
|
|
|
.EXPORT : CLASSPATH
|
2002-04-24 08:50:48 -05:00
|
|
|
.EXPORT : PATH
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
# --- TARGETS -----------------------------------------------------
|
|
|
|
|
|
|
|
$(CLASSDIR)$/solar.properties : $(SOLARENV)$/inc/minor.mk $(SOLARENV)$/inc/ant.properties
|
|
|
|
@echo Making: $@
|
2006-10-05 04:36:25 -05:00
|
|
|
@echo solar.build=$(BUILD) > $@
|
|
|
|
@echo solar.rscversion=$(RSCVERSION) >> $@
|
|
|
|
@echo solar.rscrevision=$(RSCREVISION) >> $@
|
|
|
|
@echo solar.minor=$(LAST_MINOR) >> $@
|
|
|
|
@echo solar.sourceversion=$(SOURCEVERSION) >> $@
|
|
|
|
@echo solar.udkstamp=$(UDKSTAMP) >> $@
|
|
|
|
@echo solar.extstamp=$(EXTSTAMP) >> $@
|
2001-08-27 09:16:18 -05:00
|
|
|
@+cat $(DMAKEROOT)$/../ant.properties >> $@
|
|
|
|
|
|
|
|
ANTBUILD .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS)
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
clean .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
prepare .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
2004-03-17 02:32:10 -06:00
|
|
|
main: .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
2004-03-17 02:32:10 -06:00
|
|
|
info: .PHONY
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
jar .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
2001-08-27 09:44:08 -05:00
|
|
|
compile .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:44:08 -05:00
|
|
|
|
2002-06-20 09:23:55 -05:00
|
|
|
depend .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2002-06-20 09:23:55 -05:00
|
|
|
|
2001-08-27 09:16:18 -05:00
|
|
|
javadoc .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
2001-08-27 09:44:08 -05:00
|
|
|
config .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
2004-03-17 02:32:10 -06:00
|
|
|
test .PHONY:
|
2005-10-13 10:48:31 -05:00
|
|
|
$(WRAPCMD_ENV) $(ANT) $(ANT_FLAGS) $@
|
2001-08-27 09:16:18 -05:00
|
|
|
|
|
|
|
|