update dev300-m57
[ooovba.git] / stax / makefile.mk
blobade3b4bc46d59b40aedbb1c1557ee1debbab78b0
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.4.2.1 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ=.
34 PRJNAME=stax
35 TARGET=stax
36 USE_JAVAVER=TRUE
38 # --- Settings -----------------------------------------------------
40 .INCLUDE : settings.mk
41 .INCLUDE : antsettings.mk
43 .IF "$(SOLAR_JAVA)" != ""
44 .IF "$(JAVANUMVER:s/.//)" >= "000100060000" || "$(JDK)"=="gcj"
45 all:
46 @echo "Your java version already contains StAX"
47 .ENDIF # "$(JAVANUMVER:s/.//)" >= "000100060000"
48 .IF "$(SYSTEM_SAXON)" == "YES"
49 all:
50 @echo "An already available installation of saxon should exist on your system."
51 @echo "Therefore the files provided here does not need to be built in addition."
52 .ENDIF
54 EXTERNAL_DIR=$(PRJ)$/..$/external/StAX
56 .IF "$(BUILD_STAX)" != "YES"
58 $(OUT)$/class$/jsr173_1.0_api.jar : $(EXTERNAL_DIR)$/jsr173_1.0_api.jar
59 +$(COPY) $< $@
61 .ELSE # "$(BUILD_STAX)" != "YES"
63 # --- Files --------------------------------------------------------
64 TARFILE_NAME=stax-api-1.0-2-sources
65 TARFILE_ROOTDIR=src
67 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
69 OUT2CLASS=jsr173_1.0_api.jar
71 .ENDIF # "$(BUILD_STAX)" != "YES"
72 .ELSE # $(SOLAR_JAVA)!= ""
73 nojava:
74 @echo "Not building $(PRJNAME) because Java is disabled"
75 .ENDIF # $(SOLAR_JAVA)!= ""
76 # --- Targets ------------------------------------------------------
78 .INCLUDE : set_ext.mk
79 .INCLUDE : target.mk
80 .IF "$(SOLAR_JAVA)" != ""
81 .INCLUDE : tg_ext.mk
82 .ENDIF