X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=common.mk;h=95813d453d585a2350c22ed3bf9fd35137274577;hb=80f033a18bf1f0ed924952f3b1187c19aaa253e5;hp=041e699d78f411a8d17ea1bc4ef8ce8e503baaea;hpb=8b3dc98cbdb1fb8f4bf827a3c11f1c07f6818616;p=cc0%2Fargeo-build.git diff --git a/common.mk b/common.mk index 041e699..95813d4 100644 --- a/common.mk +++ b/common.mk @@ -6,6 +6,18 @@ ECJ_MAJOR=3 BNDLIB_BRANCH=5.3 SYSLOGGER_BRANCH=$(build-major).$(build-minor) +# The following variables are found in the sdk.mk file which is generated by the configure script: +# SDK_SRC_BASE the base of the source code, typically the root of the cloned git repository +# SDK_BUILD_BASE the base of the output +# JAVA_HOME the base of the JDK used to build +A2_OUTPUT = $(SDK_BUILD_BASE)/a2 +JVM ?= $(JAVA_HOME)/bin/java +JAVADOC ?= $(JAVA_HOME)/bin/javadoc + +# The following variables have default values which can be overriden +# A2_BASE the space-separated directories where already built a2 categories can be found +A2_BASE ?=$(A2_OUTPUT) /usr/local/share/a2 /usr/share/a2 + # GNU defaults prefix ?= /usr/local datarootdir ?= $(prefix)/share @@ -25,3 +37,14 @@ TARGET_ARCH_CATEGORY_PREFIX=$(TARGET_OS_CATEGORY_PREFIX)/$(TARGET_ARCH) PORTABLE_CATEGORIES=$(filter-out lib/%, $(CATEGORIES)) ARCH_CATEGORIES=$(filter $(TARGET_ARCH_CATEGORY_PREFIX)/%, $(CATEGORIES)) OS_CATEGORIES=$(filter-out $(foreach arch, $(KNOWN_ARCHS), $(TARGET_OS_CATEGORY_PREFIX)/$(arch)/%), $(filter $(TARGET_OS_CATEGORY_PREFIX)/%, $(CATEGORIES))) + +# Utilities +# Make variables used to replace spaces by a separator, typically in order to generate classpaths +# for example: CLASSPATH = $(subst $(space),$(pathsep),$(strip $(JARS))) +null := +space := $(null) # +pathsep := : +define LF + +$(null) +endef