From dd60799cfe47b6fdcd79e8b1d0a6d80e911eea88 Mon Sep 17 00:00:00 2001 From: Elmar Peise Date: Sun, 28 Feb 2016 00:03:33 +0100 Subject: [PATCH] completing link lines for icc --- make.inc | 2 +- test/Makefile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/make.inc b/make.inc index 55c8ccf..ccc0855 100644 --- a/make.inc +++ b/make.inc @@ -9,6 +9,6 @@ FFLAGS = -O3 -Wpedantic AR = ar # BLAS / LAPACK link line for test (relative to test/) -LINK_TEST = -L../lapack/ -L../blas/ -llapack -lblas -lgfortran +LINK_TEST = -L../lapack/ -L../blas/ -llapack -lblas -lgfortran -lm # vim: ft=make diff --git a/test/Makefile b/test/Makefile index eb60b3b..59005f5 100644 --- a/test/Makefile +++ b/test/Makefile @@ -23,16 +23,16 @@ test: util.o $(TESTS) @./$< > /dev/null && echo " pass" || (echo " FAIL" && ./$<) s%.x: x%.c util.o ../$(LIBNAME) config.h test.h - $(CC) $(CFLAGS) -DDT_PREFIX=s $< util.o -o $@ $(LINK_TEST) ../librelapack.a + $(CC) $(CFLAGS) -DDT_PREFIX=s $< util.o -o $@ $(LINK_TEST) ../librelapack.a $(LINK_TEST) d%.x: x%.c util.o ../$(LIBNAME) config.h test.h - $(CC) $(CFLAGS) -DDT_PREFIX=d $< util.o -o $@ $(LINK_TEST) ../librelapack.a + $(CC) $(CFLAGS) -DDT_PREFIX=d $< util.o -o $@ $(LINK_TEST) ../librelapack.a $(LINK_TEST) c%.x: x%.c util.o ../$(LIBNAME) config.h test.h - $(CC) $(CFLAGS) -DDT_PREFIX=c $< util.o -o $@ $(LINK_TEST) ../librelapack.a + $(CC) $(CFLAGS) -DDT_PREFIX=c $< util.o -o $@ $(LINK_TEST) ../librelapack.a $(LINK_TEST) z%.x: x%.c util.o ../$(LIBNAME) config.h test.h - $(CC) $(CFLAGS) -DDT_PREFIX=z $< util.o -o $@ $(LINK_TEST) ../librelapack.a + $(CC) $(CFLAGS) -DDT_PREFIX=z $< util.o -o $@ $(LINK_TEST) ../librelapack.a $(LINK_TEST) clean: rm -f util.o *.x