guile-commits
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]