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