Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / stax / makefile.mk
blobff3238bd6beaf3bf43dee08b01556961ed46d9b1
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
28 PRJ=.
30 PRJNAME=stax
31 TARGET=stax
32 USE_JAVAVER=TRUE
34 # --- Settings -----------------------------------------------------
36 .INCLUDE : settings.mk
37 .INCLUDE : antsettings.mk
39 .IF "$(SOLAR_JAVA)" != ""
40 .IF "$(JAVANUMVER:s/.//)" >= "000100060000" || "$(JDK)"=="gcj"
41 all:
42 @echo "Your java version already contains StAX"
43 .ENDIF # "$(JAVANUMVER:s/.//)" >= "000100060000"
44 .IF "$(SYSTEM_SAXON)" == "YES"
45 all:
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
50 .IF "$(BUILD_STAX)" != "YES"
52 $(OUT)$/class$/jsr173_1.0_api.jar : $(PRJ)$/download$/jsr173_1.0_api.jar
53 +$(COPY) $< $@
55 .ELSE # "$(BUILD_STAX)" != "YES"
57 # --- Files --------------------------------------------------------
58 TARFILE_NAME=stax-api-1.0-2-sources
59 TARFILE_MD5=8294d6c42e3553229af9934c5c0ed997
60 TARFILE_ROOTDIR=src
62 BUILD_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
64 OUT2CLASS=jsr173_1.0_api.jar
65 .ENDIF # "$(BUILD_STAX)" != "YES"
67 .ELSE # $(SOLAR_JAVA)!= ""
68 nojava:
69 @echo "Not building $(PRJNAME) because Java is disabled"
70 .ENDIF # $(SOLAR_JAVA)!= ""
71 # --- Targets ------------------------------------------------------
73 .INCLUDE : set_ext.mk
74 .INCLUDE : target.mk
75 .IF "$(SOLAR_JAVA)" != ""
76 .INCLUDE : tg_ext.mk
77 .ENDIF