Makefile.conf
author Roker <roker@pep-project.org>
Tue, 19 Sep 2017 13:32:04 +0200
changeset 2068 997cd3a4148e
parent 1993 efaeadf3e6f0
child 2070 d834a86b51e9
permissions -rw-r--r--
break overlong lines so the comments can be read without scrolling in every editor
damiano@1960
     1
# Copyright 2017, pEp Foundation
damiano@1953
     2
# This file is part of pEpEngine
damiano@1953
     3
# This file may be used under the terms of the GNU General Public License version 3
damiano@1953
     4
# see LICENSE.txt
vb@1513
     5
roker@2068
     6
# This file assembles all the make variables that a maintainer or dev may
roker@2068
     7
# want to taylor to his or her needs on a given platform.
vb@450
     8
roker@2068
     9
# To use custom build configuration variables, put them in a new file with
roker@2068
    10
# the path `build-config/<name>.conf`.
roker@2068
    11
# Execute `export PLATFORM_OVERRIDE=<name>` before running make.  If this
roker@2068
    12
# environment variable is not set, make will load a default configuration
roker@2068
    13
# for your platform.
vb@450
    14
damiano@1965
    15
BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
vb@1089
    16
damiano@1962
    17
include $(BUILD_CONFIG)/common.conf
roker@2068
    18
roker@2068
    19
# cross-compiling is currently not supported, but maybe you can hack
roker@2068
    20
# something with `PLATFORM_OVERRIDE`
roker@2068
    21
damiano@1958
    22
ifeq ($(BUILD_ON),$(BUILD_FOR))
damiano@1962
    23
    include $(BUILD_CONFIG)/$(BUILD_ON).conf
damiano@1953
    24
else
damiano@1953
    25
    $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
damiano@1953
    26
endif
damiano@1958
    27
ifdef PLATFORM_OVERRIDE
damiano@1962
    28
    include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
damiano@1958
    29
endif