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$/jsr173_1.0_api.jar : $(PRJ)$/download$/jsr173_1.0_api.jar 49 +$(COPY) $< $@ 50 51.ELSE # "$(BUILD_STAX)" != "YES" 52 53# --- Files -------------------------------------------------------- 54TARFILE_NAME=stax-api-1.0-2-sources 55TARFILE_MD5=8294d6c42e3553229af9934c5c0ed997 56TARFILE_ROOTDIR=src 57 58BUILD_ACTION=$(JAVAC) javax$/xml$/stream$/*.java && jar -cf jsr173_1.0_api.jar javax$/xml$/stream$/*.class javax$/xml$/stream$/events$/*.class javax$/xml$/stream$/util$/*.class 59 60OUT2CLASS=jsr173_1.0_api.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