-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·61 lines (50 loc) · 1.69 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile for TUV 5.2.1
# Use with disort (discrete ordinate), or ps2str (2 stream approximation,
# pseudo-spherical correction)
#----------
# EXC : name of executable
# INCLUDES : required include files
# USE_INCL : object files referencing include file (params)
# FOBJS : all required object files that do not use the include file
#
# intel := $(shell command -v ifort 2> /dev/null)
EXC = tuv
INCLUDES = params
USE_INCL = SRC/TUV.o \
SRC/grids.o \
SRC/rdinp.o SRC/rdetfl.o SRC/rdxs.o \
SRC/swphys.o SRC/swbiol.o SRC/RXN/swchem.o SRC/RXN/mcmext.o\
SRC/RXN/rxn.o SRC/RXN/rxn_ald.o SRC/RXN/rxn_ket.o SRC/RXN/rxn_dicar.o\
SRC/RXN/rxn_nit.o SRC/RXN/rxn_dinit.o SRC/RXN/rxn_rooh.o\
SRC/RXN/rxn_poly.o SRC/RXN/rxn_sci.o SRC/RXN/rxn_halo.o SRC/qys.o \
SRC/wshift.o \
SRC/vpair.o SRC/vptmp.o SRC/vpo3.o \
SRC/odrl.o SRC/odo3.o \
SRC/setaer.o SRC/setalb.o SRC/setcld.o SRC/setsnw.o \
SRC/setno2.o SRC/seto2.o SRC/setso2.o \
SRC/sphers.o \
SRC/la_srb.o \
SRC/rtrans.o \
SRC/savout.o \
SRC/options.o
FOBJS = SRC/numer.o SRC/functs.o SRC/orbit.o
#----------
# FC : FORTRAN compiler
# Linux users: try FC = g77
# Cray users : try FC = f90
# FC = pgf90
# FC = gfortran
# FFLAGS : command line options to compiler call (if not set, default is
# probably some basic optimization level)
# FFLAGS = -fcheck=all #-Wall
FFLAGS = -cpp -fpp -fp-model strict -O3 -no-prec-div -static -xHost
# LIBS : libraries required
# LIBS =
#----------
$(EXC): $(FOBJS) $(USE_INCL)
$(FC) $(FFLAGS) $(FOBJS) $(USE_INCL) $(LIBS) -o $@
$(USE_INCL): $(INCLUDES)
clean:
rm -f $(EXC) $(USE_INCL) $(FOBJS)
tidy: clean
rm -f core *~ fort.*