Repository navigation
Expand file tree
/
Copy pathrap_make.LINUX_ALPHA
More file actions
181 lines (148 loc) · 3.3 KB
/
Copy pathrap_make.LINUX_ALPHA
File metadata and controls
181 lines (148 loc) · 3.3 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
# ** Copyright UCAR (c) 1992 - 2010
# ** University Corporation for Atmospheric Research(UCAR)
# ** National Center for Atmospheric Research(NCAR)
# ** Research Applications Laboratory(RAL)
# ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
# ** 2010/10/7 16:53:3
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
###########################################################
#
# Macros for ALPHA_LINUX machines
#
# Mike Dixon
#
# RAP,NCAR,Boulder,Colorado,80307,USA
#
# Jan 1998
#
############################################################
#
# system utilities
#
SHELL = /bin/sh
RM = /bin/rm -f
MV = /bin/mv -f
CP = /bin/cp
CP_DIR = /bin/cp -r
MKDIR = /bin/mkdir -p
TEST = /usr/bin/test
PERL = /usr/bin/perl
#
# includes
#
SYS_INCLUDES =
SYS_X_INCLUDES =
SYS_XVIEW_INCLUDES =
#
# LD_LIBRARY_PATH
#
SYS_LD_LIBRARY_PATH =
#
# lint
#
LINT = alint
LINTFILTER = $(RAP_MAKE_BIN_DIR)/lint_filter.$(HOST_OS)
SYS_LINTFLAGS = -aux -DLINT -D$(HOST_OS)
#
# compile
#
# gcc
#
CC = egcc
#SYS_CFLAGS = -ansi $(GCC_WARNINGS) -D$(HOST_OS) -D_BSD_TYPES -DBSD -D_BSD_SOURCE
SYS_CFLAGS = $(GCC_WARNINGS) -D$(HOST_OS) -DF_UNDERSCORE2
PROFILE_FLAG = -pg
DEBUG_FLAG = -g
OPT_FLAG = -O
#
# cc
#
#CC = cc
#SYS_CFLAGS = -ansi -fullwarn -w -D$(HOST_OS) -D_BSD_TYPES
#DEBUG_FLAG = -g
#OPT_FLAG = -O
#PROFILE_FLAG = -p
SYS_CPPC_CFLAGS = -Wall -D$(HOST_OS)
CPPC = g++
SYS_CPPC_INCLUDES =
ACC = $(CC)
# fortran
FC = /usr/bin/g77
# Compile -- special for C <-> FORTRAN
# The "NATIVE" compilers need to be either both GNU or both
# non-GNU for these compiles to work. If you use GNU, then
# the USE_GNU_F2C must be set to "-DUSE_GNU_F2C" (no quotes).
NATIVE_CC = gcc
NATIVE_FC = /usr/bin/g77
NATIVE_LIB_DIR =
F_TO_C_LIBS = -lf2c
USE_GNU_F2C = -DUSE_GNU_F2C
SYS_FFLAGS = -fno-globals -DLITENDIAN -DBIT64
#
# link
#
SYS_LIBS =
SYS_CPPC_LIBS =
SYS_X_LIBS = -lXext -lXm -lXpm -lXt -lX11
SYS_LDFLAGS =
SYS_CPPC_LDFLAGS =
SYS_X_LDFLAGS = -L/usr/X11R6/lib
SYS_F_LDFLAGS =
SYS_XVIEW_LDFLAGS =
SYS_MOTIF_LDFLAGS = -lXpm -lXext
LEX_LIB = -lfl
YACC_LIB =
SYS_UCB_LIBS =
SYS_UCB_LDFLAGS =
# INSURE_LDFLAGS = -L/tools/insure/lib.linux
# INSURE_LIBS = -linsight -linslib -ltqsiicgcc -lm
#
# Expect/TCL stuff
#
EXPECT_INCLUDES = -I/usr/include/tcl
EXPECT_LIBS = -lexpect -ltcl7.4 -ldl
#
# Archiving libs
#
AR = ar
ARFLAGS = rv
RANLIB = na
HAVE_RANLIB=FALSE
#
# yacc and lex
#
YACC = yacc
LEX = lex
#YACC = bison --yacc
#LEX = flex
SYS_YACCFLAGS = -d -t -v
SYS_LEXFLAGS =
#
# purify
#
PURE = pure
SYS_PURE_FLAGS =
# NCAR Graphics
# NCG_INC_DIR defines location of NCAR Graphics include files
# NCG_LIB_DIR defines location of NCAR Graphics libraries
# NCAR_CC defines name of script to do NCAR Graphics links
NCG_INC_DIR=-I/usr/local/ncarg/include
NCG_LIB_DIR=-L/usr/local/ncarg/lib
NCAR_CC=ncargcc
# netCDF
# NETCDF_INCS defines location of netCDF include files
# NETCDF_LDFLAGS defines location of netCDF libraries
NETCDF_INCS=-I/usr/local/netcdf/include
NETCDF_LDFLAGS=-L/usr/local/netcdf/lib
NETCDF_C_LIB=-lnetcdf
NETCDF_C++_LIB=-lnetcdf_c++
NETCDF_FF_LIB=-lnetcdff
NETCDF_C_AND_C++_LIBS=-lnetcdf -lnetcdf_c++
NETCDF4_LIBS=-lnetcdf_c++ -lnetcdf -lhdf5_hl -lhdf5 -lz -ludunits2
#
# Jasper
#
JASPER_INCLUDES = -I/usr/local/jasper/include
JASPER_LDFLAGS = -L/usr/local/jasper/lib
JASPER_LIBS = -ljasper