From f5b2148a221d7bf2337ee28de0edb37e4c2a3c0d Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 22 Sep 2014 23:26:22 -0400 Subject: [PATCH] Use CFLAGS to build self-tests --- test/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Makefile b/test/Makefile index 7782924..5aae3d4 100644 --- a/test/Makefile +++ b/test/Makefile @@ -4,13 +4,13 @@ include ../Make.inc all: test-double test-float # test-double-system test-float-system test-double: test-double.c libm-test.c - $(CC) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@ + $(CC) $(CFLAGS) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@ test-float: test-float.c libm-test.c - $(CC) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@ + $(CC) $(CFLAGS) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@ test-double-system: test-double.c libm-test.c - $(CC) -g $< -DSYS_MATH_H -lm -o $@ + $(CC) $(CFLAGS) -g $< -DSYS_MATH_H -lm -o $@ test-float-system: test-float.c libm-test.c - $(CC) -g $< -DSYS_MATH_H -lm -o $@ + $(CC) $(CFLAGS) -g $< -DSYS_MATH_H -lm -o $@