xref: /aoo42x/main/solenv/inc/ant.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# --- Force JDK14 switch  ------------------------------------------
25
26.IF "$(USE_JDK_VERSION)" == "140"
27JDK_VERSION=140
28JAVA_HOME=$(JDK14PATH)
29
30PATH!:=$(JDK14PATH)/bin$(PATH_SEPERATOR)$(PATH)
31XCLASSPATH:=$(JDK14PATH)/jre/lib/rt.jar
32CLASSPATH:=$(XCLASSPATH)
33.ENDIF
34
35# --- Settings -----------------------------------------------------
36
37.INCLUDE : settings.mk
38
39
40# --- ANT build environment  ---------------------------------------
41
42.INCLUDE : antsettings.mk
43
44.INCLUDE : target.mk
45
46CLASSPATH!:=$(CLASSPATH)$(PATH_SEPERATOR)$(ANT_CLASSPATH)$(PATH_SEPERATOR)$(JAVA_HOME)/lib/tools.jar
47.EXPORT : CLASSPATH
48.EXPORT : PATH
49
50# --- TARGETS -----------------------------------------------------
51
52$(CLASSDIR)/solar.properties : $(SOLARVERSION)/$(INPATH)/inc$(UPDMINOREXT)/minormkchanged.flg $(SOLARENV)/inc/ant.properties
53	@echo "Making:   " $@
54	@echo solar.build=$(BUILD) > $@
55	@echo solar.rscversion=$(USQ)$(RSCVERSION)$(USQ) >> $@
56	@echo solar.rscrevision=$(USQ)$(RSCREVISION)$(USQ) >> $@
57	@echo solar.minor=$(LAST_MINOR) >> $@
58	@echo solar.sourceversion=$(SOURCEVERSION) >> $@
59	@echo solar.udkstamp=$(UDKSTAMP) >> $@
60	@echo solar.extstamp=$(EXTSTAMP) >> $@
61	@cat $(DMAKEROOT)/../ant.properties >> $@
62
63ANTBUILD .PHONY:
64	$(ANT) $(ANT_FLAGS)
65
66clean  .PHONY:
67	$(ANT) $(ANT_FLAGS) $@
68
69prepare .PHONY:
70	$(ANT) $(ANT_FLAGS) $@
71
72main: .PHONY:
73	$(ANT) $(ANT_FLAGS) $@
74
75info: .PHONY
76	$(ANT) $(ANT_FLAGS) $@
77
78jar .PHONY:
79	$(ANT) $(ANT_FLAGS) $@
80
81compile .PHONY:
82	$(ANT) $(ANT_FLAGS) $@
83
84depend .PHONY:
85	$(ANT) $(ANT_FLAGS) $@
86
87javadoc .PHONY:
88	$(ANT) $(ANT_FLAGS) $@
89
90config .PHONY:
91	$(ANT) $(ANT_FLAGS) $@
92
93test .PHONY:
94	$(ANT) $(ANT_FLAGS) $@
95
96
97