mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
63 lines
1.2 KiB
Makefile
63 lines
1.2 KiB
Makefile
# @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@
|
|
|
|
|
|
.PHONY: clean maintainer-clean check
|
|
.POSIX:
|
|
|
|
|
|
check: test_c test_f
|
|
$(RM) -r -- trexio_test
|
|
$(RM) -r -- trexio_test_fort
|
|
./test_c
|
|
./test_f
|
|
|
|
|
|
test_c: test.c
|
|
$(CC) $(CPPFLAGS) -I$(srcdir)/../include $(CFLAGS) -Wl,-rpath,$(srcdir)/../lib -L$(srcdir)/../lib test.c $(LDFLAGS) -ltrexio $(LIBS) -o test_c
|
|
|
|
|
|
test_f: trexio_f.f90 test.f90
|
|
$(FC) $(CPPFLAGS) $(FCFLAGS) -Wl,-rpath,$(srcdir)/../lib -L$(srcdir)/../lib trexio_f.f90 test.f90 $(LDFLAGS) -ltrexio $(LIBS) -o test_f
|
|
|
|
|
|
trexio_f.f90:
|
|
cp $(srcdir)/../include/trexio_f.f90 .
|
|
|
|
|
|
clean:
|
|
$(RM) -- trexio.mod test_f test_c *.h5
|
|
$(RM) -r -- trexio_test/ trexio_test_fort/
|
|
|
|
|
|
maintainer-clean: clean
|
|
$(RM) -- trexio_f.o
|
|
|
|
|
|
Makefile: Makefile.in ../config.status
|
|
cd .. && ./config.status tests/$@
|
|
|
|
|
|
../config.status: ../configure
|
|
cd .. && ./config.status --recheck
|
|
|