author | Damiano Boppart <damiano@pep-security.net> |
Wed, 23 Aug 2017 11:06:55 +0000 | |
branch | ENGINE-228 |
changeset 1993 | efaeadf3e6f0 |
parent 1968 | e30b1515b7b9 |
parent 1989 | d3e5bc4a9854 |
child 2068 | 997cd3a4148e |
permissions | -rw-r--r-- |
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 |
damiano@1953 | 5 |
|
damiano@1968 | 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. |
damiano@1968 | 7 |
|
damiano@1968 | 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. |
damiano@1953 | 9 |
|
damiano@1965 | 10 |
BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config |
vb@1517 | 11 |
|
damiano@1962 | 12 |
include $(BUILD_CONFIG)/common.conf |
damiano@1953 | 13 |
# cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE` |
damiano@1958 | 14 |
ifeq ($(BUILD_ON),$(BUILD_FOR)) |
damiano@1962 | 15 |
include $(BUILD_CONFIG)/$(BUILD_ON).conf |
damiano@1953 | 16 |
else |
damiano@1953 | 17 |
$(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON)) |
damiano@1953 | 18 |
endif |
damiano@1958 | 19 |
ifdef PLATFORM_OVERRIDE |
damiano@1962 | 20 |
include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf |
damiano@1958 | 21 |
endif |