commit 64c3c3e286e916ac2dc2d16812b21165b012f9f0 parent 2bf9c28e042636db833aae0767b984eb8dc1d719 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Tue, 12 Nov 2024 22:30:49 +0100 tests/ld: Use new scc wrapper in the tests This make easier to use scc-ld from other directories. Diffstat:
M | tests/ld/execute/Makefile | | | 15 | +++++++-------- |
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/tests/ld/execute/Makefile b/tests/ld/execute/Makefile @@ -1,13 +1,12 @@ AS = z80-unknown-coff-as -AR = ../../../bin/scc-ar -LD = ../../../bin/scc-ld -RL = ../../../bin/scc-ranlib -SZ = ../../../bin/scc-size + +BINDIR = ../../../bin/ OBJS = f1.o f2.o OBJLIB = f3.o -all: a.out +all: + PATH=$(BINDIR):$$PATH $(MAKE) a.out tests: @if command -v $(AS) >/dev/null;\ @@ -22,13 +21,13 @@ tests: printf '\tld/execute\n' a.out: $(OBJS) f.a - $(LD) $(OBJS) f.a >/dev/null 2>&1 || true + scc ld $(OBJS) f.a >/dev/null 2>&1 || true f.a: $(OBJLIB) - $(AR) -rv $@ $? >/dev/null 2>&1 + scc ar -rv $@ $? >/dev/null 2>&1 size: - $(SZ) *.o *.a + scc size *.o *.a clean: rm -f *.o *.a a.out core* *.dat