From 81810669ab3019e0dc14fce4f4315fbbbf6046e0 Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 24 Mar 2021 17:14:23 +0100 Subject: [PATCH] link module when compiling fortran test --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 53d4a3f..cd965b7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -51,7 +51,7 @@ fortran: libtrexio.so trexio_f.f90 test: libtrexio.so test.c test.f90 trexio_f.o rm -f -r test_text_fort/ $(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath,$(PWD) -L. test.c -ltrexio $(LIBS) -o test - $(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath,$(PWD) -L. test.f90 -ltrexio $(LIBS) -o test_f + $(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath,$(PWD) -L. test.f90 trexio_f.o -ltrexio $(LIBS) -o test_f clean: rm -f *.o libtrexio.so test test_*.h5 test_f