2020-10-14 00:52:50 +02:00
|
|
|
CC=gcc
|
2020-10-21 19:50:18 +02:00
|
|
|
CFLAGS=-fPIC -fexceptions -Wall -Werror -Wpedantic -Wextra -g
|
2020-10-14 00:52:50 +02:00
|
|
|
|
2020-10-14 01:43:13 +02:00
|
|
|
FC=gfortran
|
2020-10-25 15:02:37 +01:00
|
|
|
FFLAGS=-fPIC -g -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant -Wuninitialized -fbacktrace -ffpe-trap=zero,overflow,underflow -finit-real=nan
|
2020-10-15 12:36:52 +02:00
|
|
|
|
2020-10-22 00:50:07 +02:00
|
|
|
LIBS=-lgfortran -lm
|
2020-10-14 01:43:13 +02:00
|
|
|
|
2020-10-26 19:30:50 +01:00
|
|
|
#CC=icc
|
|
|
|
#CFLAGS=-fPIC -g
|
|
|
|
#
|
|
|
|
#FC=ifort
|
|
|
|
#FFLAGS=-fPIC -g
|
|
|
|
#
|
|
|
|
#LIBS=-lm -lifcore -lirc
|
|
|
|
|
2020-10-22 00:50:07 +02:00
|
|
|
|
|
|
|
export CC CFLAGS FC FFLAGS LIBS
|
2020-10-14 00:52:50 +02:00
|
|
|
|
2020-10-21 19:50:18 +02:00
|
|
|
ORG_SOURCE_FILES=$(wildcard qmckl*.org) test_qmckl.org
|
2020-10-16 13:58:05 +02:00
|
|
|
OBJECT_FILES=$(filter-out $(EXCLUDED_OBJECTS), $(patsubst %.org,%.o,$(ORG_SOURCE_FILES)))
|
2020-10-14 09:54:12 +02:00
|
|
|
|
2020-10-21 19:50:18 +02:00
|
|
|
.PHONY: clean
|
2020-10-16 13:58:05 +02:00
|
|
|
.SECONDARY: # Needed to keep the produced C and Fortran files
|
2020-10-15 09:41:26 +02:00
|
|
|
|
2020-10-16 13:58:05 +02:00
|
|
|
libqmckl.so: Makefile.generated
|
|
|
|
$(MAKE) -f Makefile.generated
|
2020-10-14 00:52:50 +02:00
|
|
|
|
2020-10-21 19:50:18 +02:00
|
|
|
test: Makefile.generated
|
2020-10-17 00:28:49 +02:00
|
|
|
$(MAKE) -f Makefile.generated test
|
|
|
|
|
2020-10-22 01:24:14 +02:00
|
|
|
doc:$(ORG_SOURCE_FILES)
|
|
|
|
./create_doc.sh $(ORG_SOURCE_FILES)
|
|
|
|
|
2020-10-14 09:54:12 +02:00
|
|
|
clean:
|
2020-10-26 19:30:50 +01:00
|
|
|
rm -f qmckl.h test_qmckl_* test_qmckl.c qmckl_*.f90 qmckl_*.c qmckl_*.o qmckl_*.h Makefile.generated libqmckl.so *.html *.fh
|
2020-10-14 09:54:12 +02:00
|
|
|
|
2020-10-16 13:58:05 +02:00
|
|
|
Makefile.generated: $(ORG_SOURCE_FILES) Makefile create_makefile.sh
|
|
|
|
./create_makefile.sh $(ORG_SOURCE_FILES)
|
2020-10-14 00:52:50 +02:00
|
|
|
|