summaryrefslogtreecommitdiffstats
path: root/config/vars.mk
blob: a8fae9dac728c039dd75935e6c576c2ae6c12588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD

# Makefile fragment loads and exports variables for config steps

GEN := ${BUILDDIR}/gen
GEN := ${GEN:./%=%}

include ${GEN}/vars.mk

_CC := ${CC}
_CPPFLAGS := ${CPPFLAGS}
_CFLAGS := ${CFLAGS}
_LDFLAGS := ${LDFLAGS}
_LDLIBS := ${LDLIBS}

export CC=${_CC}
export CPPFLAGS=${_CPPFLAGS}
export CFLAGS=${_CFLAGS}
export LDFLAGS=${_LDFLAGS}
export LDLIBS=${_LDLIBS}