Makefile.conf
author Krista Bennett <krista@pep-project.org>
Tue, 22 Aug 2017 15:34:17 +0200
changeset 1988 ea7bceda4dc8
parent 1942 f734d5bd851a
child 1989 d3e5bc4a9854
permissions -rw-r--r--
Rolled back to revision 1982. Sorry all, checked in wrong branch to default
krista@1988
     1
# Copyright 2017, pEp Foundation
krista@1988
     2
# This file is part of pEpEngine
krista@1988
     3
# This file may be used under the terms of the GNU General Public License version 3
krista@1988
     4
# see LICENSE.txt
krista@1988
     5
krista@1988
     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.
krista@1988
     7
krista@1988
     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.
krista@1988
     9
krista@1988
    10
BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
vb@1517
    11
krista@1988
    12
include $(BUILD_CONFIG)/common.conf
krista@1988
    13
# cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE`
krista@1988
    14
ifeq ($(BUILD_ON),$(BUILD_FOR))
krista@1988
    15
    include $(BUILD_CONFIG)/$(BUILD_ON).conf
krista@1988
    16
else
krista@1988
    17
    $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
krista@1988
    18
endif
krista@1988
    19
ifdef PLATFORM_OVERRIDE
krista@1988
    20
    include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
krista@1988
    21
endif