summaryrefslogtreecommitdiffstats
path: root/scripts/t/mk/buildtools.mk
blob: 745e03bc8909c478b8974858aff063842995e82c (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
29
30
31
32
33
34
35
AR                := overridden
TEST_AR           := overridden
TEST_AR_FOR_BUILD := overridden

DPKG_EXPORT_BUILDTOOLS := 1

include $(srcdir)/mk/buildtools.mk

tools := \
  AR \
  AS \
  CC \
  CPP \
  CXX \
  F77 \
  FC \
  LD \
  NM \
  OBJC \
  OBJCOPY \
  OBJCXX \
  OBJDUMP \
  PKG_CONFIG \
  RANLIB \
  STRIP \
  # EOL
loop_targets := $(tools) $(tools:=_FOR_BUILD)

test: $(loop_targets)

$(loop_targets):
	: # Test the $@ Make variable.
	test '$($@)' = '$(TEST_$@)'
	: # Test the $@ exported variable.
	test "$${$@}" = '$(TEST_$@)'