Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/make/devkit/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 4 kB image not shown  

Quelle  Makefile   Sprache: unbekannt

 
java.lang.NullPointerException
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
java.lang.NullPointerException
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.  Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the LICENSE file that accompanied this code.
java.lang.NullPointerException
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
java.lang.NullPointerException
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
java.lang.NullPointerException
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
or visit www.oracle.com if you need additional information or have any
questions.
java.lang.NullPointerException

################################################################################
java.lang.NullPointerException
This Makefile, together with Tools.gmk, can be used to compile a set of
gcc based cross compilation, portable, self contained packages, capable
of building OpenJDK.
java.lang.NullPointerException
By default this Makefile will build a native toolchain for the current
platform if called with something like this:
java.lang.NullPointerException
make tars BASE_OS=OL
java.lang.NullPointerException
To build the full set of crosstools for additional platforms, use a command
line looking like this:
java.lang.NullPointerException
make TARGETS="aarch64-linux-gnu" BASE_OS=Fedora
or
make TARGETS="arm-linux-gnueabihf ppc64-linux-gnu" BASE_OS=Fedora BASE_OS_VERSION=17
java.lang.NullPointerException
to build several devkits for a specific OS version at once.
You can find the final results under ../../build/devkit/result/<host>-to-<target>
java.lang.NullPointerException
You may want the native toolchain to be used when compiling the cross
compilation toolchains. To achieve this, first build the native toolchain,
then add the bin directory from this build to the path when invoking this
makefile again for cross compilation. Ex:
java.lang.NullPointerException
PATH=$PWD/../../build/devkit/result/x86_64-linux-gnu-to-x86_64-linux-gnu/bin:$PATH \
#    make TARGETS="arm-linux-gnueabihf,ppc64-linux-gnu" BASE_OS=Fedora
java.lang.NullPointerException
This is the makefile which iterates over all host and target platforms.
java.lang.NullPointerException

COMMA := ,

os := $(shell uname -o)
cpu := $(shell uname -p)

Figure out what platform this is building on.
me := $(cpu)-$(if $(findstring Linux,$(os)),linux-gnu)

$(info Building on platform $(me))

java.lang.NullPointerException
By default just build for the current platform, which is assumed to be Linux
java.lang.NullPointerException
ifeq ($(TARGETS), )
  platforms := $(me)
  host_platforms := $(platforms)
else
  platforms := $(subst $(COMMA), , $(TARGETS))
  host_platforms := $(me)
endif
target_platforms := $(platforms)
$(info host_platforms $(host_platforms))
$(info target_platforms $(target_platforms))

all compile : $(platforms)

ifeq (,$(SKIP_ME))
  $(foreach p,$(filter-out $(me),$(platforms)),$(eval $(p) : $$(me)))
endif

OUTPUT_ROOT = $(abspath ../../build/devkit)
RESULT = $(OUTPUT_ROOT)/result

submakevars = HOST=$@ BUILD=$(me) RESULT=$(RESULT) OUTPUT_ROOT=$(OUTPUT_ROOT)

$(host_platforms) :
 @echo 'Building compilers for $@'
 @echo 'Targets: $(target_platforms)'
 for p in $(filter $@, $(target_platforms)) $(filter-out $@, $(target_platforms)); do \
   $(MAKE) -f Tools.gmk download-rpms $(submakevars) \
              TARGET=$$p PREFIX=$(RESULT)/$@-to-$$p && \
   $(MAKE) -f Tools.gmk all $(submakevars) \
              TARGET=$$p PREFIX=$(RESULT)/$@-to-$$p && \
   $(MAKE) -f Tools.gmk ccache $(submakevars) \
              TARGET=$@ PREFIX=$(RESULT)/$@-to-$$p || exit 1 ; \
 done
 @echo 'All done"'

today := $(shell date +%Y%m%d)

define Mktar
  $(1)-to-$(2)_tar = $$(RESULT)/sdk-$(1)-to-$(2)-$$(today).tar.gz
  $$($(1)-to-$(2)_tar) : PLATFORM = $(1)-to-$(2)
  TARFILES += $$($(1)-to-$(2)_tar)
endef

$(foreach p,$(host_platforms),$(foreach t,$(target_platforms),$(eval $(call Mktar,$(p),$(t)))))

tars : all $(TARFILES)
onlytars : $(TARFILES)
%.tar.gz :
 $(MAKE) -r -f Tars.gmk SRC_DIR=$(RESULT)/$(PLATFORM) TAR_FILE=$@

clean :
 rm -rf $(addprefix ../../build/devkit/, result $(host_platforms))
dist-clean: clean
 rm -rf $(addprefix ../../build/devkit/, src download)

FORCE :
.PHONY : all compile tars $(configs) $(host_platforms) clean dist-clean

Messung V0.5
C=100 H=60 G=82

[ Dauer der Verarbeitung: 0.17 Sekunden  (vorverarbeitet)  ]