Makefile.conf
author Damiano Boppart <damiano@pep-security.net>
Tue, 19 Sep 2017 14:39:41 +0200
changeset 2070 d834a86b51e9
parent 2068 997cd3a4148e
child 2081 1593ebbb7f31
permissions -rw-r--r--
Wrap long comments at sentence boundaries, instead of arbitrarily.
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@2070
     6
# This file assembles all the make variables that a maintainer or dev may want to adapt for a distribution.
vb@450
     7
damiano@2070
     8
# To use custom build configuration variables, put them in a new file with the path `build-config/<name>.conf`.
damiano@2070
     9
# Execute `export PLATFORM_OVERRIDE=<name>` before running make.
damiano@2070
    10
# If this environment variable is not set, make will load a default configuration for your platform.
vb@450
    11
damiano@1965
    12
BUILD_CONFIG:=$(dir $(lastword $(MAKEFILE_LIST)))build-config
vb@1089
    13
damiano@1962
    14
include $(BUILD_CONFIG)/common.conf
damiano@2070
    15
# Cross-compiling is currently not supported.
damiano@2070
    16
# Maybe you can hack something with `PLATFORM_OVERRIDE`
damiano@1958
    17
ifeq ($(BUILD_ON),$(BUILD_FOR))
damiano@1962
    18
    include $(BUILD_CONFIG)/$(BUILD_ON).conf
damiano@1953
    19
else
damiano@1953
    20
    $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
damiano@1953
    21
endif
damiano@1958
    22
ifdef PLATFORM_OVERRIDE
damiano@1962
    23
    include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
damiano@1958
    24
endif