1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-08-25 06:31:43 +02:00

adapt for fortran interface

This commit is contained in:
q-posev 2021-03-23 18:19:35 +01:00
parent cf26966b70
commit 4bdd6ea8f3
2 changed files with 7 additions and 2 deletions

6
src/.gitignore vendored
View File

@ -1,5 +1,6 @@
templates_front/*.c
templates_front/*.h
templates_front/*.f90
templates_front/populated/
templates_hdf5/*.c
@ -16,8 +17,11 @@ libtrexio.so
trexio.c
trexio_text.c
trexio_hdf5.c
trexio_f.f90
trexio.mod
test
test_write.h5
test_f
*.h5
trexio_test/

View File

@ -49,8 +49,9 @@ fortran: libtrexio.so trexio_f.f90
$(FC) $(FFLAGS) -c trexio_f.f90 -o trexio_f.o
test: libtrexio.so test.c test.f90 trexio_f.o
rm -f -r trexio_test/
$(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath,$(PWD) -L. test.c -ltrexio $(LIBS) -o test
$(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath,$(PWD) -L. trexio_f.o test.f90 -ltrexio $(LIBS) -o test_f
$(CC) $(CFLAGS) $(INCLUDE) -Wl,-rpath,$(PWD) -L. test.f90 -ltrexio $(LIBS) -o test_f
clean:
rm -f *.o libtrexio.so test test_*.h5 test_f