summaryrefslogtreecommitdiff
path: root/contrib/bmake/mk/sys/Generic.mk
blob: d9c958ffff9478bdf0983ff3f779657c179ae378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SPDX-License-Identifier: BSD-2-Clause
#
#	$Id: Generic.mk,v 1.21 2024/02/17 17:26:57 sjg Exp $
#

.LIBS:		.a

tools  ?= \
	ar \
	lorder \
	ranlib \
	tsort

.for t in ${tools}
${t:tu} := ${t:${M_whence}}
.endfor

# need to make sure this is set
MACHINE_ARCH.${MACHINE} ?= ${MACHINE}
.if empty(MACHINE_ARCH)
MACHINE_ARCH = ${MACHINE_ARCH.${MACHINE}}
.endif

.if !empty(TSORT)
TSORT += -q
.endif