-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile.mac
executable file
·49 lines (41 loc) · 2.14 KB
/
makefile.mac
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
43
44
45
46
47
48
49
#
# Usage:
# make [to create the executable diff_pat]
# make install [to install it in the correct directory]
# make clean [to clean the source directory]
#
#
# --------------------------------------------------------------
# in ESRF/NICE:
# . /scisoft/ESRF_sw/opteron2/set_environment
#
# System definition (architecture)
#
ARCH = darwin
FC = gfortran -cpp -fPIC -ffree-line-length-none -O2 -fomit-frame-pointer -D_COMPILE4MAX
FFLAGS =
LFLAGS = -static-libgfortran -lgfortran -lgcc -lSystem -mmacosx-version-min=10.13 /usr/local/gfortran/lib/libquadmath.a
COMPILEOPT=-cpp -D_COMPILE4NIX
all: clean diff_pat compliance
compliance: compliance.f90 shadow_globaldefinitions.f90 stringio.f90 shadow_math.f90 elasticity.f90
$(FC) $(FFLAGS) -c shadow_globaldefinitions.f90
$(FC) $(FFLAGS) -c shadow_math.f90
$(FC) $(FFLAGS) -c stringio.f90
$(FC) $(FFLAGS) -c elasticity.f90
$(FC) $(FFLAGS) -c compliance.f90
ld -o compliance -no_compact_unwind -arch x86_64 -macosx_version_min 10.13.0 -lSystem /usr/local/gfortran/lib/libgfortran.a /usr/local/gfortran/lib/libquadmath.a /usr/local/gfortran/lib/gcc/x86_64-apple-darwin16/6.3.0/libgcc.a shadow_globaldefinitions.o stringio.o shadow_math.o elasticity.o compliance.o
diff_pat: diff_pat.f90 crystal3.f90 shadow_globaldefinitions.f90 stringio.f90 shadow_math.f90 elasticity.f90
$(FC) $(FFLAGS) -c shadow_globaldefinitions.f90
$(FC) $(FFLAGS) -c shadow_math.f90
$(FC) $(FFLAGS) -c stringio.f90
$(FC) $(FFLAGS) -c elasticity.f90
$(FC) $(FFLAGS) -c crystal3.f90
$(FC) $(FFLAGS) -c diff_pat.f90
ld -o diff_pat -no_compact_unwind -arch x86_64 -macosx_version_min 10.13.0 -lSystem /usr/local/gfortran/lib/libgfortran.a /usr/local/gfortran/lib/libquadmath.a /usr/local/gfortran/lib/gcc/x86_64-apple-darwin16/6.3.0/libgcc.a shadow_globaldefinitions.o stringio.o shadow_math.o elasticity.o crystal3.o diff_pat.o
clean:
/bin/rm -f *.mod *.o diff_pat diff_pat.dat diff_pat.par *.mod compliance compliance
install:
cp diff_pat ./../../bin.$(ARCH)/diff_pat
cp diff_pat ./../../../xop2.3/bin.$(ARCH)/diff_pat
cp compliance ./../../bin.$(ARCH)/compliance
cp compliance ./../../../xop2.3/bin.$(ARCH)/compliance