forked from sundmanbo/opencalphad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-nogetkey
74 lines (54 loc) · 1.94 KB
/
Makefile-nogetkey
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
OBJS=tinyopen.o metlib3.o oclablas.o ocnum.o gtp3.o matsmin.o lmdif1lib.o smp2.o pmon6.o
EXE=oc5P
FC=gfortran
FCOPT= -O2 -fopenmp
# for debugging
#FCOPT= -fbounds-check -finit-local-zero
# no parallel
#FCOPT= -O2
#FC=ifort
#FCOPT= -check bounds -zero
# ************************************
# OC now requires GNUPLOT 5.0 or later
# ************************************
# This compiles OC without command line editing facilities (getkey)
# To have the command line editing and history features
# you must use the Makefile provided
all: $(OBJS) $(EXE)
tinyopen.o:
# compile utilities/TINYFILEDIALOGS for popup openfile windows
gcc -c utilities/TINYFILEDIALOGS/tinyfiledialogs.c
gcc -c utilities/TINYFILEDIALOGS/tinyopen.c
gfortran -c utilities/TINYFILEDIALOGS/ftinyopen.F90
metlib3.o: utilities/metlib3.F90
# tinyfd for open files
# lixhlp for browser help
$(FC) -c $(FCOPT) -Dtinyfd -Dlixhlp utilities/metlib3.F90
oclablas.o: numlib/oclablas.F90
$(FC) -c $(FCOPT) numlib/oclablas.F90
ocnum.o: numlib/ocnum.F90
$(FC) -c $(FCOPT) numlib/ocnum.F90
lmdif1lib.o: numlib/lmdif1lib.F90
$(FC) -c $(FCOPT) numlib/lmdif1lib.F90
gtp3.o: models/gtp3.F90
$(FC) -c $(FCOPT) models/gtp3.F90
matsmin.o: minimizer/matsmin.F90
$(FC) -c $(FCOPT) minimizer/matsmin.F90
smp2.o: stepmapplot/smp2.F90
$(FC) -c $(FCOPT) stepmapplot/smp2.F90
pmon6.o: userif/pmon6.F90
# default wxt graphical driver
# use -Dqtplt fot Qt or -Daqplt for aqua plot drivers nothing for wxt
# use -Dlixhlp for online browser help
$(FC) -c $(FCOPT) -Daqplt userif/pmon6.F90
$(EXE):
$(FC) -o linkoc linkocdate.F90
./linkoc
# create library liboceq.a
ar sq liboceq.a metlib3.o oclablas.o ocnum.o gtp3.o matsmin.o lmdif1lib.o
$(FC) -o $(EXE) $(FCOPT) pmain1.F90 pmon6.o smp2.o ftinyopen.o tinyopen.o tinyfiledialogs.o liboceq.a
clean:
rm -r *.o *.mod linkoc liboceq.a $(EXE)
# ************************************
# OC now requires GNUPLOT 5.0 or later
# ************************************