2021-04-30 15:53:11 +02:00
|
|
|
# @configure_input@
|
|
|
|
|
|
|
|
# Package-specific substitution variables
|
|
|
|
package = @PACKAGE_NAME@
|
|
|
|
version = @PACKAGE_VERSION@
|
|
|
|
tarname = @PACKAGE_TARNAME@
|
|
|
|
distdir = $(tarname)-$(version)
|
|
|
|
|
|
|
|
# Prefix-specific substitution variables
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
# Tool-specific substitution variables
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
FC = @FC@
|
|
|
|
FCFLAGS = @FCFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
|
|
|
|
2021-05-05 11:37:48 +02:00
|
|
|
.PHONY: clean maintainer-clean check
|
2021-04-30 15:53:11 +02:00
|
|
|
.POSIX:
|
|
|
|
|
|
|
|
|
|
|
|
check: test_c test_f
|
|
|
|
$(RM) -r -- trexio_test
|
|
|
|
$(RM) -r -- trexio_test_fort
|
|
|
|
./test_c
|
|
|
|
./test_f
|
|
|
|
|
|
|
|
|
2021-04-30 19:04:43 +02:00
|
|
|
test_c: test.c
|
2021-05-05 11:37:48 +02:00
|
|
|
$(CC) $(CPPFLAGS) -I$(srcdir)/../include $(CFLAGS) -Wl,-rpath,$(srcdir)/../lib -L$(srcdir)/../lib test.c $(LDFLAGS) -ltrexio $(LIBS) -o test_c
|
2021-04-30 15:53:11 +02:00
|
|
|
|
|
|
|
|
2021-05-03 15:15:49 +02:00
|
|
|
test_f: trexio_f.f90 test.f90
|
2021-05-05 11:37:48 +02:00
|
|
|
$(FC) $(CPPFLAGS) $(FCFLAGS) -Wl,-rpath,$(srcdir)/../lib -L$(srcdir)/../lib trexio_f.f90 test.f90 $(LDFLAGS) -ltrexio $(LIBS) -o test_f
|
2021-05-03 15:15:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
trexio_f.f90:
|
2021-05-05 11:37:48 +02:00
|
|
|
cp $(srcdir)/../include/trexio_f.f90 .
|
2021-04-30 15:53:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2021-05-03 15:15:49 +02:00
|
|
|
$(RM) -- trexio.mod test_f test_c *.h5
|
2021-04-30 15:53:11 +02:00
|
|
|
$(RM) -r -- trexio_test/ trexio_test_fort/
|
|
|
|
|
|
|
|
|
2021-05-05 11:37:48 +02:00
|
|
|
maintainer-clean: clean
|
2021-05-03 15:15:49 +02:00
|
|
|
$(RM) -- trexio_f.o
|
2021-04-30 15:53:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
Makefile: Makefile.in ../config.status
|
|
|
|
cd .. && ./config.status tests/$@
|
|
|
|
|
|
|
|
|
|
|
|
../config.status: ../configure
|
|
|
|
cd .. && ./config.status --recheck
|
|
|
|
|