Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / jfreereport / java / libbase / makefile.mk
blob54a247ba61f3f6d4b77ea467d4c34db9f9a7b02e
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=jfreereport
31 TARGET=libbase
32 # --- Settings -----------------------------------------------------
34 .INCLUDE : settings.mk
35 .INCLUDE : antsettings.mk
36 .INCLUDE : $(PRJ)/version.mk
38 .IF "$(SOLAR_JAVA)" != ""
39 # --- Files --------------------------------------------------------
41 TARFILE_NAME=$(TARGET)-$(LIBBASE_VERSION)
42 TARFILE_MD5=eeb2c7ddf0d302fba4bfc6e97eac9624
43 #TARFILE_ROOTDIR=$(TARGET)
44 TARFILE_IS_FLAT=true
46 PATCH_FILES=$(PACKAGE_DIR)/$(TARGET).patch $(PRJ)/patches/$(TARGET)-$(LIBBASE_VERSION)-deprecated.patch
47 CONVERTFILES=common_build.xml
49 .IF "$(JAVACISGCJ)"=="yes"
50 JAVA_HOME=
51 .EXPORT : JAVA_HOME
52 BUILD_ACTION="$(ANT)" -Dlib="../../../class" -Dbuild.label="build-$(RSCREVISION)" -Dantcontrib.available="true" -Dbuild.id="10682" -Dproject.revision="$(LIBBASE_VERSION)" -Dbuild.compiler=gcj -f $(ANT_BUILDFILE) jar
53 .ELSE
54 BUILD_ACTION="$(ANT)" -Dlib="../../../class" -Dbuild.label="build-$(RSCREVISION)" -Dantcontrib.available="true" -Dbuild.id="10682" -Dproject.revision="$(LIBBASE_VERSION)" -Dant.build.javac.source=$(JAVA_SOURCE_VER) -Dant.build.javac.target=$(JAVA_TARGET_VER) -f $(ANT_BUILDFILE) jar
55 .ENDIF
57 .ENDIF # $(SOLAR_JAVA)!= ""
59 # --- Targets ------------------------------------------------------
61 .INCLUDE : set_ext.mk
62 .INCLUDE : target.mk
64 .IF "$(SOLAR_JAVA)" != ""
65 .IF "$(L10N_framework)"==""
66 .INCLUDE : tg_ext.mk
68 ALLTAR : $(CLASSDIR)/$(TARGET)-$(LIBBASE_VERSION).jar
70 $(PACKAGE_DIR)/$(TARGET).patch :
71 @-$(MKDIRHIER) $(PACKAGE_DIR)$(fake_root_dir)
72 ( $(TYPE:s/+//) $(PRJ)/patches/common_build.patch | $(SED) 's/libloader-1.1.3/$(TARGET)-$(LIBBASE_VERSION)/g' > $(PACKAGE_DIR)/$(TARGET).patch )
73 $(COMMAND_ECHO)$(TOUCH) $(PACKAGE_DIR)/so_converted_$(TARGET).dummy
75 # XCLASSPATH/CLASSPATH does not work and we only can give lib once. But
76 # the build.xmls fortunately take *.jar out of lib so we can copy our
77 # commons-logging.jar here - yes, even in the system-apache commons case.
78 # Sucks.
79 $(PACKAGE_DIR)/$(CONFIGURE_FLAG_FILE) : $(CLASSDIR)/commons-logging.jar
81 $(CLASSDIR)/commons-logging.jar :
82 .IF "$(SYSTEM_APACHE_COMMONS)" != "YES"
83 $(COPY) $(OUTDIR)/bin/commons-logging-1.1.1.jar $(CLASSDIR)/commons-logging.jar
84 .ELSE
85 $(COPY) $(COMMONS_LOGGING_JAR) $(CLASSDIR)/commons-logging.jar
86 .ENDIF
88 $(CLASSDIR)/$(TARGET)-$(LIBBASE_VERSION).jar : $(CLASSDIR)/commons-logging.jar $(PACKAGE_DIR)/$(INSTALL_FLAG_FILE)
89 $(COPY) $(PACKAGE_DIR)/$(TARFILE_ROOTDIR)/dist/$(TARGET)-$(LIBBASE_VERSION).jar $(CLASSDIR)/$(TARGET)-$(LIBBASE_VERSION).jar
90 .ENDIF
91 .ENDIF