forked from cmt-dtu-energy/MagTense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (30 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FC = /apps/external/intel/2019/compilers_and_libraries_2019.4.243/linux/bin/intel64/ifort
FFLAGS = -r8 -O3 -fpe0 -fp-model source -fpic -I../../NumericalIntegration/NumericalIntegration/ \
#FC = /usr/bin/gfortran
#FFLAGS = -O3 -fopenmp -fdefault-real-8 -ffixed-line-length-none -fPIC
.KEEP_STATE:
.SUFFIXES:
.SUFFIXES: .for .f90 .F90 .f .o
.f.o:
$(FC) -c $(FFLAGS) $<
.f90.o:
$(FC) -c $(FFLAGS) $<
.F90.o:
$(FC) -c $(FFLAGS) $<
.for.o:
$(FC) -c $(FFLAGS) $<
all:
cd source/NumericalIntegration/NumericalIntegration && $(MAKE)
cd source/TileDemagTensor/TileDemagTensor && $(MAKE)
cd source/DemagField/DemagField && $(MAKE)
cd source/MagTense_StandAlone/MagTense_StandAlone && $(MAKE)
cd source/MagneticForceIntegrator/MagneticForceIntegrator && $(MAKE)
cp source/MagTense_StandAlone/MagTense_StandAlone/MagTense.x executable/MagTense.x
cd source/MagTenseMicroMag && $(MAKE)
clean:
cd source/NumericalIntegration/NumericalIntegration && rm -f *.o *.x *.mod *.a
cd source/TileDemagTensor/TileDemagTensor && rm -f *.o *.x *.mod *.a
cd source/DemagField/DemagField && rm -f *.o *.x *.mod *.a
cd source/MagTense_StandAlone/MagTense_StandAlone && rm -f *.o *.x *.mod *.a
cd source/MagneticForceIntegrator/MagneticForceIntegrator && rm -f *.o *.x *.mod *.a
cd source/MagTenseMicroMag && rm -f *.o *.x *.mod *.a