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
6 # To use custom build configuration variables, put them in a new file at `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.
8 BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
10 include $(BUILD_CONFIG)/common.conf
11 # cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE`
12 ifeq ($(BUILD_ON),$(BUILD_FOR))
13 include $(BUILD_CONFIG)/$(BUILD_ON).conf
15 $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
17 ifdef PLATFORM_OVERRIDE
18 include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf