Makefile.conf
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:19 +0200
branchENGINE-237
changeset 2726 497fe9a22367
parent 1993 efaeadf3e6f0
child 2068 997cd3a4148e
permissions -rw-r--r--
close branch
     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 want to taylor to his or her needs on a given platform.
     7 
     8 # To use custom build configuration variables, put them in a new file with the path `build-config/<name>.conf`. Execute `export PLATFORM_OVERRIDE=<name>` before running make. If this environment variable is not set, make will load a default configuration for your platform.
     9 
    10 BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
    11 
    12 include $(BUILD_CONFIG)/common.conf
    13 # cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE`
    14 ifeq ($(BUILD_ON),$(BUILD_FOR))
    15     include $(BUILD_CONFIG)/$(BUILD_ON).conf
    16 else
    17     $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
    18 endif
    19 ifdef PLATFORM_OVERRIDE
    20     include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
    21 endif