[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/09: Add support for "make test-ia32" in tests/
From: |
Andy Wingo |
Subject: |
[Guile-commits] 02/09: Add support for "make test-ia32" in tests/ |
Date: |
Wed, 24 Apr 2019 10:04:21 -0400 (EDT) |
wingo pushed a commit to branch lightening
in repository guile.
commit a45d651755c23790bb2cfab92808472545a5fabb
Author: Andy Wingo <address@hidden>
Date: Fri Apr 5 16:24:21 2019 +0200
Add support for "make test-ia32" in tests/
---
tests/Makefile | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/tests/Makefile b/tests/Makefile
index 8527065..d620173 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -2,6 +2,7 @@ TESTS=$(sort $(basename $(wildcard *.c)))
TARGETS=native
CC = gcc
+CC_IA32 = gcc -m32
CFLAGS = -Wall -O0 -g
all: $(foreach TARGET,$(TARGETS),$(addprefix test-$(TARGET)-,$(TESTS)))
@@ -18,12 +19,16 @@ test-%: $(addprefix test-%-,$(TESTS))
.PHONY: test check
-lightening.o: ../lightening.h ../lightening/*.c
- $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -o lightening.o -c
../lightening/lightening.c
+lightening-%.o: ../lightening.h ../lightening/*.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -o $@ -c ../lightening/lightening.c
-test-native-%: %.c lightening.o test.h
- $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -o $@ lightening.o $<
+test-native-%: %.c lightening-native.o test.h
+ $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -o $@ lightening-native.o $<
+
+test-ia32-%: CC = $(CC_IA32)
+test-ia32-%: %.c lightening-ia32.o test.h
+ $(CC) -m32 $(CFLAGS) $(CPPFLAGS) -I.. -o $@ lightening-ia32.o $<
clean:
rm -f $(foreach TARGET,$(TARGETS),$(addprefix test-$(TARGET)-,$(TESTS)))
- rm -f lightening.o
+ rm -f $(foreach TARGET,$(TARGETS),lightning-$(TARGET).o)
- [Guile-commits] branch lightening updated (b35662f -> 9a32b4b), Andy Wingo, 2019/04/24
- [Guile-commits] 02/09: Add support for "make test-ia32" in tests/,
Andy Wingo <=
- [Guile-commits] 08/09: Merge from upstream lightening, Andy Wingo, 2019/04/24
- [Guile-commits] 07/09: Add support for operand addends, Andy Wingo, 2019/04/24
- [Guile-commits] 05/09: Merge from upstream lightening, Andy Wingo, 2019/04/24
- [Guile-commits] 01/09: Allow test suite to test multiple targets., Andy Wingo, 2019/04/24
- [Guile-commits] 09/09: Adapt to new lightening call API, Andy Wingo, 2019/04/24
- [Guile-commits] 03/09: Fix lightening name, Andy Wingo, 2019/04/24
- [Guile-commits] 06/09: Add proper parallel-moves solver, Andy Wingo, 2019/04/24
- [Guile-commits] 04/09: Simplify API for loading call arguments, Andy Wingo, 2019/04/24