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
     1 # Copyright 2017, pEp Foundation
     2 # This file is part of pEpEngine
     3 # This file may be used under the terms of the GNU General Public License version 3
     4 # see LICENSE.txt
     5 
     6 # This file assembles all the make variables that a maintainer or dev may
     7 # want to taylor to his or her needs on a given platform.
     8 
     9 # To use custom build configuration variables, put them in a new file with
    10 # the path `build-config/<name>.conf`.
    11 # Execute `export PLATFORM_OVERRIDE=<name>` before running make.  If this
    12 # environment variable is not set, make will load a default configuration
    13 # for your platform.
    14 
    15 BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
    16 
    17 include $(BUILD_CONFIG)/common.conf
    18 
    19 # cross-compiling is currently not supported, but maybe you can hack
    20 # something with `PLATFORM_OVERRIDE`
    21 
    22 ifeq ($(BUILD_ON),$(BUILD_FOR))
    23     include $(BUILD_CONFIG)/$(BUILD_ON).conf
    24 else
    25     $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
    26 endif
    27 ifdef PLATFORM_OVERRIDE
    28     include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
    29 endif