summaryrefslogtreecommitdiff
path: root/makefiles/Makefile.top
diff options
context:
space:
mode:
Diffstat (limited to 'makefiles/Makefile.top')
-rw-r--r--makefiles/Makefile.top18
1 files changed, 9 insertions, 9 deletions
diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top
index 6329c47..89a040d 100644
--- a/makefiles/Makefile.top
+++ b/makefiles/Makefile.top
@@ -2,7 +2,7 @@
#
# Expected inputs:
#
-# BUILD Type of build to perform:
+# VARIANT Type of build to perform:
# release - Release build
# debug - Debug build
# COMPONENT Name of the component (sans leading "lib" iff a library)
@@ -12,12 +12,12 @@
# lib-static - Static library
# lib-shared - Shared library
# riscos-module - RISC OS module
-# TARGET Target platform identifier
+# BUILD Target platform identifier
#
# Optional inputs:
#
# BUILDDIR Directory to build into (defaults to
-# build-$(HOST)-$(TARGET)-$(BUILD)-$(COMPONENT_TYPE))
+# build-$(HOST)-$(BUILD)-$(VARIANT)-$(COMPONENT_TYPE))
# CC_CAN_BUILD_AND_DEP Flag whether $(CC) is capable of calculating dependency
# information at the same time as compiling sources.
# Set to "yes" if it can.
@@ -80,15 +80,15 @@ ifeq ($(COMPONENT_TYPE),)
endif
# Target platform must be defined by the client
-ifeq ($(TARGET),)
- $(error TARGET not defined)
-endif
-
-# Build type, too
ifeq ($(BUILD),)
$(error BUILD not defined)
endif
+# Build variant, too
+ifeq ($(VARIANT),)
+ $(error VARIANT not defined)
+endif
+
##############################################################################
# Makefile variables
##############################################################################
@@ -109,7 +109,7 @@ patch-version := $(word 3,$(subst ., ,$(COMPONENT_VERSION)))
##############################################################################
# Build directory
-BUILDDIR ?= build-$(HOST)-$(TARGET)-$(BUILD)-$(COMPONENT_TYPE)
+BUILDDIR ?= build-$(HOST)-$(BUILD)-$(VARIANT)-$(COMPONENT_TYPE)
# Build tree subdirs
COVERAGEDIR := $(BUILDDIR)/coverage