2019-03-19 10:15:55 +01:00
|
|
|
IDIR =../../include
|
|
|
|
BDIR =../../bin
|
|
|
|
ODIR = obj
|
|
|
|
OODIR = ../IntPak/obj
|
|
|
|
SDIR =.
|
2019-05-07 22:55:36 +02:00
|
|
|
FC = gfortran -I$(IDIR) -Wall -g -Wno-unused -Wno-unused-dummy-argument
|
2019-03-19 10:15:55 +01:00
|
|
|
ifeq ($(DEBUG),1)
|
2019-05-07 22:55:36 +02:00
|
|
|
FFLAGS = -Wall -g -msse4.2 -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant
|
2019-03-19 10:15:55 +01:00
|
|
|
else
|
2019-05-07 22:55:36 +02:00
|
|
|
FFLAGS = -O3
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(PROFIL),1)
|
|
|
|
FC += -p -fno-inline
|
2019-03-19 10:15:55 +01:00
|
|
|
endif
|
|
|
|
|
2019-10-30 10:31:05 +01:00
|
|
|
LIBS = ../../lib/*.a
|
|
|
|
LIBS += -lblas -llapack
|
2019-03-19 10:15:55 +01:00
|
|
|
|
|
|
|
SRCF90 = $(wildcard *.f90)
|
|
|
|
|
|
|
|
SRC = $(wildcard *.f)
|
|
|
|
|
|
|
|
OBJ = $(patsubst %.f90,$(ODIR)/%.o,$(SRCF90)) $(patsubst %.f,$(ODIR)/%.o,$(SRC))
|
|
|
|
|
|
|
|
$(ODIR)/%.o: %.f90
|
|
|
|
$(FC) -c -o $@ $< $(FFLAGS)
|
|
|
|
|
|
|
|
$(ODIR)/%.o: %.f
|
|
|
|
$(FC) -c -o $@ $< $(FFLAGS)
|
|
|
|
|
|
|
|
$(BDIR)/QuAcK: $(OBJ)
|
|
|
|
$(FC) -o $@ $^ $(FFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
debug:
|
|
|
|
DEBUG=1 make $(BDIR)/QuAcK
|
|
|
|
#DEBUG=1 make clean $(BDIR)/QuAcK
|
|
|
|
|
2019-05-07 22:55:36 +02:00
|
|
|
profil:
|
|
|
|
PROFIL=1 make $(BDIR)/QuAcK
|
|
|
|
|
2019-03-19 10:15:55 +01:00
|
|
|
clean:
|
|
|
|
rm -f $(ODIR)/*.o $(BDIR)/QuAcK $(BDIR)/debug
|