4
1
mirror of https://github.com/pfloos/quack synced 2024-12-23 04:43:53 +01:00
This commit is contained in:
Pierre-Francois Loos 2019-02-08 10:41:15 +01:00
parent baf1b605f7
commit 9906377635

View File

@ -1,29 +0,0 @@
IDIR =../../include
LDIR =../../lib
BDIR =../../bin
ODIR = obj
SDIR =.
FC = gfortran
FFLAGS = -Wall -O3 -I$(IDIR)
DFLAGS = -g -msse4.2 -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant
LIBS = $(LDIR)/*.a $(LDIR)/slatec/src/static/libslatec.a
SRC = $(wildcard *.f90)
OBJ = $(patsubst %.f90,$(ODIR)/%.o,$(SRC))
$(ODIR)/%.o: %.f90
$(FC) -c -o $@ $< $(FFLAGS)
$(BDIR)/IntPak: $(OBJ)
$(FC) -o $@ $^ $(FFLAGS) $(LIBS)
debug: $(OBJ)
$(FC) -o $(BDIR)/$@ $^ $(FFLAGS) $(LIBS) $(DFLAGS)
clean:
rm -f $(ODIR)/*.o $(BDIR)/IntPak $(BDIR)/debug