-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmakelist
54 lines (45 loc) · 1.56 KB
/
makelist
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
#-------------------------------------------------------------------
# $Id: makelist 8328 2016-06-13 20:36:12Z rsregan $
#-------------------------------------------------------------------
MMFDIR = ./mmf
LIBDIR = ./
PRMSDIR = ./prms
#BINDIR = ./bin
MMFLIB = ../mmf/libmmf.a
#########################################################
# Configure tags for each system
##########################################################
ARC = LINUX
#OPTLEVEL = -g
#OPTLEVEL = -O -Bstatic
OPTLEVEL = -O --static
LDFLAGS =$(OPTLEVEL)
##########################################################
# Define the Fortran compile flags
##########################################################
FFLAGS= $(OPTLEVEL) -fbounds-check -Wall -fno-second-underscore
#FFLAGS= $(OPTLEVEL) -Wall -fno-second-underscore
FC = gfortran
##########################################################
# Define the C compile flags
# -D_UF defines UNIX naming conventions for mixed language compilation.
##########################################################
CFLAGS = $(OPTLEVEL) -D$(ARC) -D_UF
CC = gcc
##########################################################
# Define the libraries
##########################################################
MATHLIB = -lm
#GCLIB = -lgfortran -lgcc $(MATHLIB)
GCLIB = -L/opt/gcc/8.3.0/snos/lib64/ -lgfortran
FLIBS = $(GCLIB)
##########################################################
# Unix system commands
##########################################################
RM = rm -f
AR = ar ruv
RANLIB = ranlib
MAKE = make
LN = ln -s
CD = cd
CP = cp