xref: /aoo41x/main/stax/makefile.mk (revision 6f36c9f0)
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
24PRJ=.
25
26PRJNAME=stax
27TARGET=stax
28USE_JAVAVER=TRUE
29
30# --- Settings -----------------------------------------------------
31
32.INCLUDE :	settings.mk
33.INCLUDE : antsettings.mk
34
35.IF "$(SOLAR_JAVA)" != ""
36.IF "$(JAVANUMVER:s/.//)" >= "000100060000" || "$(JDK)"=="gcj"
37all:
38	@echo "Your java version already contains StAX"
39.ENDIF			# "$(JAVANUMVER:s/.//)" >= "000100060000"
40.IF "$(SYSTEM_SAXON)" == "YES"
41all:
42	@echo "An already available installation of saxon should exist on your system."
43	@echo "Therefore the files provided here does not need to be built in addition."
44.ENDIF
45
46.IF "$(BUILD_STAX)" != "YES"
47
48$(OUT)$/class$/stax-1.2.0.jar : $(PRJ)$/download$/stax-1.2.0.jar
49	+$(COPY) $< $@
50
51.ELSE 			#  "$(BUILD_STAX)" != "YES"
52
53# --- Files --------------------------------------------------------
54TARFILE_NAME=stax-src-1.2.0
55TARFILE_MD5=980143f96b3f6ce45d2e4947da21a5e9
56TARFILE_ROOTDIR=src
57
58BUILD_ACTION=$(JAVAC) javax$/xml$/stream$/*.java && jar -cf stax-1.2.0.jar javax$/xml$/stream$/*.class javax$/xml$/stream$/events$/*.class javax$/xml$/stream$/util$/*.class
59
60OUT2CLASS=stax-1.2.0.jar
61.ENDIF			#  "$(BUILD_STAX)" != "YES"
62
63.ELSE			# $(SOLAR_JAVA)!= ""
64nojava:
65	@echo "Not building $(PRJNAME) because Java is disabled"
66.ENDIF			# $(SOLAR_JAVA)!= ""
67# --- Targets ------------------------------------------------------
68
69.INCLUDE : set_ext.mk
70.INCLUDE : target.mk
71.IF "$(SOLAR_JAVA)" != ""
72.INCLUDE : tg_ext.mk
73.ENDIF
74
75