/[MITgcm]/MITgcm/tools/build_options/linux_amd64_g77
ViewVC logotype

Contents of /MITgcm/tools/build_options/linux_amd64_g77

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Nov 30 22:57:46 2006 UTC (17 years, 4 months ago) by edhill
Branch: MAIN
CVS Tags: mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint60, checkpoint61, checkpoint58x_post, checkpoint58t_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58y_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i
Changes since 1.1: +26 -2 lines
add some gunk to the generic linux_amd64_g77 optfile so that it will
auto-magically find many of the common netcdf install locations -- also
delete the unnecessary makedepend specification

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_g77,v 1.1 2004/01/03 05:31:36 edhill Exp $
4 # $Name: $
5 #
6 # Build options for Suse 9 Opteron
7 # tested on (Linux eaps-dhcp-127 2.4.21-102-smp #1 SMP Wed Sep 24 13:55:59 UTC 2003 x86_64 x86_64 x86_64 GNU/Linux) system 20031107
8 #
9
10 FC=g77
11 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
12 CPP='cpp -traditional -P'
13 NOOPTFLAGS='-O0'
14 #MAKEDEPEND=/usr/X11R6/bin/gccmakedep
15 #MAKEDEPEND=/usr/X11R6/bin/makedepend
16 # For IEEE, use the "-ffloat-store" option
17 if test "x$IEEE" = x ; then
18 FFLAGS='-Wimplicit -Wunused -Wuninitialized'
19 FOPTIM='-O3 -funroll-loops'
20 else
21 FFLAGS='-Wimplicit -Wunused -ffloat-store'
22 FOPTIM='-O0 '
23 fi
24
25 if test -d /usr/include/netcdf-3 ; then
26 INCLUDES='-I/usr/include/netcdf-3'
27 if test -d /usr/lib64/netcdf-3 ; then
28 if test -f /usr/lib64/netcdf-3/libnetcdf_g77.a ; then
29 LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77'
30 else
31 LIBS='-L/usr/lib64/netcdf-3'
32 fi
33 elif test -d /usr/lib/netcdf-3 ; then
34 if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
35 LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
36 else
37 LIBS='-L/usr/lib/netcdf-3'
38 fi
39 fi
40 elif test -d /usr/include/netcdf ; then
41 INCLUDES='-I/usr/include/netcdf'
42 elif test -d /usr/local/netcdf ; then
43 INCLUDES='-I/usr/local/netcdf/include'
44 LIBS='-L/usr/local/netcdf/lib'
45 fi

  ViewVC Help
Powered by ViewVC 1.1.22