From 5e84a1aea751e8c4c46a2899a2901bb59a1f049b Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Sat, 28 Mar 2020 16:29:34 +0100 Subject: run yarpgen correctly on arm --- test/monniaux/yarpgen/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'test/monniaux') diff --git a/test/monniaux/yarpgen/Makefile b/test/monniaux/yarpgen/Makefile index dbd6ae75..339d6808 100644 --- a/test/monniaux/yarpgen/Makefile +++ b/test/monniaux/yarpgen/Makefile @@ -10,6 +10,11 @@ YARPGEN=./yarpgen GENERATOR=yarpgen endif +ifdef BITS +YARPGEN+=-m $(BITS) +CFLAGS+=-m$(BITS) +endif + MAX=129 PREFIX=ran%06.f @@ -49,13 +54,16 @@ tests_s: $(TESTS_CCOMP_TARGET_S) $(CC) $(CFLAGS) -S -o $@ $< %.target.o : %.target.s - $(TARGET_CC) -c -o $@ $< + $(TARGET_CC) $(CFLAGS) -c -o $@ $< + +%.host.o : %.host.s + $(CC) $(CFLAGS) -c -o $@ $< %.target.out : %.target - $(EXECUTE) $< > $@ + $(EXECUTE) $< | tee $@ %.host.out : %.host - ./$< > $@ + ./$< | tee $@ ran%/func.ccomp.target.s ran%/func.gcc.target.s ran%/func.ccomp.host.s ran%/func.gcc.host.s ran%/init.gcc.host.s : ran%/init.h -- cgit