mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-01-08 20:33:36 +01:00
adapt for fortran interface
This commit is contained in:
parent
cf26966b70
commit
4bdd6ea8f3
6
src/.gitignore
vendored
6
src/.gitignore
vendored
@ -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/
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user