1*8550753cSPedro Giffuni#************************************************************** 2*8550753cSPedro Giffuni# 3*8550753cSPedro Giffuni# Licensed to the Apache Software Foundation (ASF) under one 4*8550753cSPedro Giffuni# or more contributor license agreements. See the NOTICE file 5*8550753cSPedro Giffuni# distributed with this work for additional information 6*8550753cSPedro Giffuni# regarding copyright ownership. The ASF licenses this file 7*8550753cSPedro Giffuni# to you under the Apache License, Version 2.0 (the 8*8550753cSPedro Giffuni# "License"); you may not use this file except in compliance 9*8550753cSPedro Giffuni# with the License. You may obtain a copy of the License at 10*8550753cSPedro Giffuni# 11*8550753cSPedro Giffuni# http://www.apache.org/licenses/LICENSE-2.0 12*8550753cSPedro Giffuni# 13*8550753cSPedro Giffuni# Unless required by applicable law or agreed to in writing, 14*8550753cSPedro Giffuni# software distributed under the License is distributed on an 15*8550753cSPedro Giffuni# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*8550753cSPedro Giffuni# KIND, either express or implied. See the License for the 17*8550753cSPedro Giffuni# specific language governing permissions and limitations 18*8550753cSPedro Giffuni# under the License. 19*8550753cSPedro Giffuni# 20*8550753cSPedro Giffuni#************************************************************** 21*8550753cSPedro Giffuni 22*8550753cSPedro Giffuni 23*8550753cSPedro Giffuni 24*8550753cSPedro GiffuniPRJ=. 25*8550753cSPedro Giffuni 26*8550753cSPedro GiffuniPRJNAME=stax 27*8550753cSPedro GiffuniTARGET=stax 28*8550753cSPedro GiffuniUSE_JAVAVER=TRUE 29*8550753cSPedro Giffuni 30*8550753cSPedro Giffuni# --- Settings ----------------------------------------------------- 31*8550753cSPedro Giffuni 32*8550753cSPedro Giffuni.INCLUDE : settings.mk 33*8550753cSPedro Giffuni.INCLUDE : antsettings.mk 34*8550753cSPedro Giffuni 35*8550753cSPedro Giffuni.IF "$(SOLAR_JAVA)" != "" 36*8550753cSPedro Giffuni.IF "$(JAVANUMVER:s/.//)" >= "000100060000" || "$(JDK)"=="gcj" 37*8550753cSPedro Giffuniall: 38*8550753cSPedro Giffuni @echo "Your java version already contains StAX" 39*8550753cSPedro Giffuni.ENDIF # "$(JAVANUMVER:s/.//)" >= "000100060000" 40*8550753cSPedro Giffuni.IF "$(SYSTEM_SAXON)" == "YES" 41*8550753cSPedro Giffuniall: 42*8550753cSPedro Giffuni @echo "An already available installation of saxon should exist on your system." 43*8550753cSPedro Giffuni @echo "Therefore the files provided here does not need to be built in addition." 44*8550753cSPedro Giffuni.ENDIF 45*8550753cSPedro Giffuni 46*8550753cSPedro Giffuni.IF "$(BUILD_STAX)" != "YES" 47*8550753cSPedro Giffuni 48*8550753cSPedro Giffuni$(OUT)$/class$/stax-1.2.0.jar : $(PRJ)$/download$/stax-1.2.0.jar 49*8550753cSPedro Giffuni +$(COPY) $< $@ 50*8550753cSPedro Giffuni 51*8550753cSPedro Giffuni.ELSE # "$(BUILD_STAX)" != "YES" 52*8550753cSPedro Giffuni 53*8550753cSPedro Giffuni# --- Files -------------------------------------------------------- 54*8550753cSPedro GiffuniTARFILE_NAME=stax-src-1.2.0 55*8550753cSPedro GiffuniTARFILE_MD5=980143f96b3f6ce45d2e4947da21a5e9 56*8550753cSPedro GiffuniTARFILE_ROOTDIR=src 57*8550753cSPedro Giffuni 58*8550753cSPedro GiffuniBUILD_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*8550753cSPedro Giffuni 60*8550753cSPedro GiffuniOUT2CLASS=stax-1.2.0.jar 61*8550753cSPedro Giffuni.ENDIF # "$(BUILD_STAX)" != "YES" 62*8550753cSPedro Giffuni 63*8550753cSPedro Giffuni.ELSE # $(SOLAR_JAVA)!= "" 64*8550753cSPedro Giffuninojava: 65*8550753cSPedro Giffuni @echo "Not building $(PRJNAME) because Java is disabled" 66*8550753cSPedro Giffuni.ENDIF # $(SOLAR_JAVA)!= "" 67*8550753cSPedro Giffuni# --- Targets ------------------------------------------------------ 68*8550753cSPedro Giffuni 69*8550753cSPedro Giffuni.INCLUDE : set_ext.mk 70*8550753cSPedro Giffuni.INCLUDE : target.mk 71*8550753cSPedro Giffuni.IF "$(SOLAR_JAVA)" != "" 72*8550753cSPedro Giffuni.INCLUDE : tg_ext.mk 73*8550753cSPedro Giffuni.ENDIF 74*8550753cSPedro Giffuni 75