xref: /aoo41x/main/solenv/inc/ant.mk (revision cdf0e10c)
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# --- Force JDK14 switch  ------------------------------------------
29
30.IF "$(USE_JDK_VERSION)" == "140"
31JDK_VERSION=140
32JAVA_HOME=$(JDK14PATH)
33
34PATH!:=$(JDK14PATH)/bin$(PATH_SEPERATOR)$(PATH)
35XCLASSPATH:=$(JDK14PATH)/jre/lib/rt.jar
36CLASSPATH:=$(XCLASSPATH)
37.ENDIF
38
39# --- Settings -----------------------------------------------------
40
41.INCLUDE : settings.mk
42
43
44# --- ANT build environment  ---------------------------------------
45
46.INCLUDE : antsettings.mk
47
48.INCLUDE : target.mk
49
50CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(JAVA_HOME)/lib/tools.jar
51.EXPORT : CLASSPATH
52.EXPORT : PATH
53
54# --- TARGETS -----------------------------------------------------
55
56$(CLASSDIR)/solar.properties : $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/minormkchanged.flg $(SOLARENV)/inc/ant.properties
57	@echo "Making:   " $@
58	@echo solar.build=$(BUILD) > $@
59	@echo solar.rscversion=$(USQ)$(RSCVERSION)$(USQ) >> $@
60	@echo solar.rscrevision=$(USQ)$(RSCREVISION)$(USQ) >> $@
61	@echo solar.minor=$(LAST_MINOR) >> $@
62	@echo solar.sourceversion=$(SOURCEVERSION) >> $@
63	@echo solar.udkstamp=$(UDKSTAMP) >> $@
64	@echo solar.extstamp=$(EXTSTAMP) >> $@
65	@cat $(DMAKEROOT)/../ant.properties >> $@
66
67ANTBUILD .PHONY:
68	$(ANT) $(ANT_FLAGS)
69
70clean  .PHONY:
71	$(ANT) $(ANT_FLAGS) $@
72
73prepare .PHONY:
74	$(ANT) $(ANT_FLAGS) $@
75
76main: .PHONY:
77	$(ANT) $(ANT_FLAGS) $@
78
79info: .PHONY
80	$(ANT) $(ANT_FLAGS) $@
81
82jar .PHONY:
83	$(ANT) $(ANT_FLAGS) $@
84
85compile .PHONY:
86	$(ANT) $(ANT_FLAGS) $@
87
88depend .PHONY:
89	$(ANT) $(ANT_FLAGS) $@
90
91javadoc .PHONY:
92	$(ANT) $(ANT_FLAGS) $@
93
94config .PHONY:
95	$(ANT) $(ANT_FLAGS) $@
96
97test .PHONY:
98	$(ANT) $(ANT_FLAGS) $@
99
100
101