Makefile.conf
author Damiano Boppart <damiano@pep-security.net>
Wed, 16 Aug 2017 15:08:05 +0000
branchENGINE-228
changeset 1965 b62076160f76
parent 1964 ec7c4b4cc8d0
child 1968 e30b1515b7b9
permissions -rw-r--r--
Remove superfluous '/'
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
vb@1513
     5
damiano@1953
     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.
vb@450
     7
damiano@1965
     8
BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
damiano@1964
     9
damiano@1962
    10
include $(BUILD_CONFIG)/common.conf
damiano@1953
    11
# cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE`
damiano@1958
    12
ifeq ($(BUILD_ON),$(BUILD_FOR))
damiano@1962
    13
    include $(BUILD_CONFIG)/$(BUILD_ON).conf
damiano@1953
    14
else
damiano@1953
    15
    $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
damiano@1953
    16
endif
damiano@1958
    17
ifdef PLATFORM_OVERRIDE
damiano@1962
    18
    include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
damiano@1958
    19
endif