Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gotm_ismer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Dany Dumont
gotm_ismer
Commits
fb704842
Commit
fb704842
authored
Feb 22, 2011
by
dumoda01
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nettoyage du fichier Rules.make
parent
09c96ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
36 deletions
+30
-36
src/Rules.make
src/Rules.make
+30
-36
No files found.
src/Rules.make
View file @
fb704842
...
...
@@ -12,75 +12,69 @@ endif
# Force this here. Could be done in bashrc.
#FORTRAN_COMPILER=PGF90
FORTRAN_COMPILER
=
GFORTRAN
#FORTRAN_COMPILER=GFORTRAN
FORTRAN_COMPILER
=
IFORT
DEFINES
=
-DNUDGE_VEL
DEFINES
=
-D
$(FORTRAN_COMPILER)
# What do we include in this compilation
#NetCDF=false
NetCDF
=
true
SEDIMENT
=
false
#SEDIMENT=true
SEAGRASS
=
false
#SEAGRASS=true
#BIO=false
BIO
=
true
FEATURES
=
FEATURE_LIBS
=
EXTRA_LIBS
=
INCDIRS
=
LDFLAGS
=
NetCDF
=
true
SEDIMENT
=
false
SEAGRASS
=
false
BIO
=
true
FEATURES
=
FEATURE_LIBS
=
EXTRA_LIBS
=
INCDIRS
=
LDFLAGS
=
# If we want NetCDF - where are the include files and the library
#NETCDFINC = /opt/cray/netCDF/3.6.2/netCDF-pgi
/include
#NETCDFLIBDIR = /opt/cray/netCDF/3.6.2/netCDF-pgi
/lib
NETCDFINC
=
/usr/local
/include
NETCDFLIBDIR
=
/usr/local
/lib
ifdef
NETCDFINC
INCDIRS
+=
-I
$(NETCDFINC)
INCDIRS
+=
-I
$(NETCDFINC)
endif
ifdef
NETCDFLIBNAME
NETCDFLIB
=
$(NETCDFLIBNAME)
NETCDFLIB
=
$(NETCDFLIBNAME)
else
NETCDFLIB
=
-lnetcdf
NETCDFLIB
=
-lnetcdf
endif
ifdef
NETCDFLIBDIR
LDFLAGS
+=
-L
$(NETCDFLIBDIR)
LDFLAGS
+=
-L
$(NETCDFLIBDIR)
endif
#
# phony targets
#
.PHONY
:
clean realclean distclean dummy
# Top of this version of GOTM.
ifndef
GOTMDIR
#GOTMDIR := $(HOME)/Progs/gotm/gotm-4.0.0
GOTMDIR
:=
/Users/nersc/Documents/Modeles/gotm_ismer
GOTMDIR
:=
$(HOME)
/gotm_ismer
endif
CPP
=
/usr/bin/cpp
CPP
=
/usr/bin/cpp
# Here you can put defines for the [c|f]pp - some will also be set depending
# on compilation mode.
ifeq
($(NetCDF),true)
DEFINES
+=
-DNETCDF_FMT
EXTRA_LIBS
+=
$(NETCDFLIB)
DEFINES
+=
-DNETCDF_FMT
EXTRA_LIBS
+=
$(NETCDFLIB)
endif
ifeq
($(SEDIMENT),true)
DEFINES
+=
-DSEDIMENT
FEATURES
+=
extras/sediment
DEFINES
+=
-DSEDIMENT
FEATURES
+=
extras/sediment
FEATURE_LIBS
+=
-lsediment
$(buildtype)
endif
ifeq
($(SEAGRASS),true)
DEFINES
+=
-DSEAGRASS
FEATURES
+=
extras/seagrass
DEFINES
+=
-DSEAGRASS
FEATURES
+=
extras/seagrass
FEATURE_LIBS
+=
-lseagrass
$(buildtype)
endif
ifeq
($(BIO),true)
DEFINES
+=
-DBIO
FEATURES
+=
extras/bio
DEFINES
+=
-DBIO
FEATURES
+=
extras/bio
FEATURE_LIBS
+=
-lbio
$(buildtype)
endif
...
...
@@ -91,14 +85,14 @@ BINDIR = $(GOTMDIR)/bin
endif
ifndef
LIBDIR
LIBDIR
+=
$(GOTMDIR)
/lib/
$(FORTRAN_COMPILER)
LIBDIR
+=
$(GOTMDIR)
/lib/
$(FORTRAN_COMPILER)
endif
ifndef
MODDIR
#MODDIR = $(GOTMDIR)/modules
MODDIR
=
$(GOTMDIR)
/modules/
$(FORTRAN_COMPILER)
endif
INCDIRS
+=
-I
/usr/local/include
-I
/opt/cray/netCDF/3.6.2/netCDF-pgi/include
-I
$(GOTMDIR)
/include
-I
$(MODDIR)
INCDIRS
+=
-I
/usr/local/include
-I
$(GOTMDIR)
/include
-I
$(MODDIR)
# Normaly this should not be changed - unless you want something very specific.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment