Skip to content
Snippets Groups Projects
Commit 9fc6606f authored by Behrens, Prof. Dr. Jörn's avatar Behrens, Prof. Dr. Jörn
Browse files

some minor changes in mac version

parent 47964047
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,6 @@ ...@@ -4,3 +4,6 @@
*.o *.o
*.so *.so
*.dylib *.dylib
./vis
./lib
./include
#
# -- LAPACK95 interface driver routine (version 2.0) --
# UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
# August 5, 2000
#
FC = gfortran -ffree-form
FC1 = gfortran -ffixed-form
# -dcfuns Enable recognition of non-standard double
# precision complex intrinsic functions
# -dusty Allows the compilation and execution of "legacy"
# software by downgrading the category of common
# errors found in such software from "Error" to
# -ieee=full enables all IEEE arithmetic facilities
# including non-stop arithmetic.
# SET MAIN DIRECTORY PATH
# !! This has to be alterd by user !!
ROOTDIR = $(HOME)/Transport-20/tracertransportsoftware/amatos2d
LAPACK95DIR = $(ROOTDIR)/3rdparty/LAPACK95
OPTS0 = -O3 -u -V
LAPACK95MOD = $(LAPACK95DIR)/lapack95_modules
OPTS1 = -c $(OPTS0)
OPTS3 = $(OPTS1) -I$(LAPACK95MOD)
OPTL = -o
OPTLIB =
# SET atlas/blas DIRECTORY PATH
# !! This has to be alterd by user !!
BLASLIB = -L/usr/lib -lblas
# SET LAPACK DIRECTORY PATH
# !! This has to be alterd by user !!
LAPACKLIB = -L/usr/lib -llapack -lpthread -lc
LAPACK95LIB = -L$(LAPACK95DIR) -llapack95
LAPACK95 = liblapack95.a
TMG77 = /usr/lib64/tmglib.a
# LIBS = $(LAPACK95LIB) $(TMG77) $(LAPACKLIB) $(BLASLIB)
LIBS = $(LAPACK95LIB) $(LAPACKLIB) $(BLASLIB)
SUF = f90
XX = 'rm' -f $@; \
'rm' -f $@.res; \
$(FC) $(OPTS0) -o $@ -I$(LAPACK95MOD) $@.$(SUF) $(OPTLIB) $(LIBS); \
$@ < $@.dat > $@.res; \
'rm' -f $@
YY = $(FC) $(OPTS0) -o $@ -I$(LAPACK95MOD) $@.$(SUF) $(OPTLIB) $(LIBS)
.SUFFIXES: .f90 .f .o
.$(SUF).o:
$(FC) $(OPTS3) $<
.f.o:
$(FC1) $(OPTS3) $<
#
# -- LAPACK95 interface driver routine (version 2.0) --
# UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK
# August 5, 2000
#
FC = gfortran -ffree-form
FC1 = gfortran -ffixed-form
# -dcfuns Enable recognition of non-standard double
# precision complex intrinsic functions
# -dusty Allows the compilation and execution of "legacy"
# software by downgrading the category of common
# errors found in such software from "Error" to
# -ieee=full enables all IEEE arithmetic facilities
# including non-stop arithmetic.
# SET MAIN DIRECTORY PATH
# !! This has to be alterd by user !!
ROOTDIR = $(HOME)/Documents/Teaching/WS2021/Transport-20/tracertransportsoftware/amatos2d
LAPACK95DIR = $(ROOTDIR)/3rdparty/LAPACK95
OPTS0 = -O3 -u -V
LAPACK95MOD = $(LAPACK95DIR)/lapack95_modules
OPTS1 = -c $(OPTS0)
OPTS3 = $(OPTS1) -I$(LAPACK95MOD)
OPTL = -o
OPTLIB =
# SET atlas/blas DIRECTORY PATH
# !! This has to be alterd by user !!
BLASLIB = -L/opt/local/lib/lapack -lblas
# SET LAPACK DIRECTORY PATH
# !! This has to be alterd by user !!
LAPACKLIB = -L/opt/local/lib/lapack -llapack -lpthread -lc
LAPACK95LIB = -L$(LAPACK95DIR) -llapack95
LAPACK95 = liblapack95.a
TMG77 = /usr/lib64/tmglib.a
# LIBS = $(LAPACK95LIB) $(TMG77) $(LAPACKLIB) $(BLASLIB)
LIBS = $(LAPACK95LIB) $(LAPACKLIB) $(BLASLIB)
SUF = f90
XX = 'rm' -f $@; \
'rm' -f $@.res; \
$(FC) $(OPTS0) -o $@ -I$(LAPACK95MOD) $@.$(SUF) $(OPTLIB) $(LIBS); \
$@ < $@.dat > $@.res; \
'rm' -f $@
YY = $(FC) $(OPTS0) -o $@ -I$(LAPACK95MOD) $@.$(SUF) $(OPTLIB) $(LIBS)
.SUFFIXES: .f90 .f .o
.$(SUF).o:
$(FC) $(OPTS3) $<
.f.o:
$(FC1) $(OPTS3) $<
...@@ -26,7 +26,7 @@ SAVETHING= SAVETEST ...@@ -26,7 +26,7 @@ SAVETHING= SAVETEST
MODE := debug MODE := debug
# CREATE SHARED LIBRARIES # CREATE SHARED LIBRARIES
CREATE_SHARED := yes CREATE_SHARED := no #yes
# FURTHER OPTIONS # FURTHER OPTIONS
DBL_DBL := yes DBL_DBL := yes
...@@ -49,15 +49,16 @@ MACROS = ...@@ -49,15 +49,16 @@ MACROS =
# SET MAIN DIRECTORY PATH # SET MAIN DIRECTORY PATH
# !! This has to be alterd by user !! # !! This has to be alterd by user !!
ROOTDIR = $(HOME)/Documents/Development/amatos ROOTDIR = $(HOME)/Documents/Teaching/WS2021/Transport-20/tracertransportsoftware
# SET atlas/blas DIRECTORY PATH # SET atlas/blas DIRECTORY PATH
# !! This has to be alterd by user !! # !! This has to be alterd by user !!
BLASLIB = BLASLIB = -L/opt/local/lib/lapack -lblas
# SET LAPACK DIRECTORY PATH # SET LAPACK DIRECTORY PATH
# !! This has to be alterd by user !! # !! This has to be alterd by user !!
LAPACKLIB = -framework Accelerate LAPACKLIB = -L/opt/local/lib/lapack -llapack \
-L/$(ROOTDIR)/amatos2d/3rdparty/LAPACK95 -llapack95
# SET IO_EMIT LIBRARY PATH # SET IO_EMIT LIBRARY PATH
# !! This has to be alterd by user !! # !! This has to be alterd by user !!
...@@ -71,8 +72,8 @@ endif ...@@ -71,8 +72,8 @@ endif
BITMAPLIB = BITMAPLIB =
BITMAPINC = BITMAPINC =
ifeq ($(strip $(IO_PGM)),yes) ifeq ($(strip $(IO_PGM)),yes)
BITMAPLIB = -L/sw2/lib -lnetpbm BITMAPLIB = -L/opt/local/lib -lnetpbm
BITMAPINC = -I/sw2/include BITMAPINC = -I/opt/local/include
endif endif
# SET NETCDF PATHS # SET NETCDF PATHS
...@@ -81,17 +82,17 @@ NETCDFLIB = ...@@ -81,17 +82,17 @@ NETCDFLIB =
NETCDFINC = NETCDFINC =
NCUGRIDLIB = NCUGRIDLIB =
ifneq ($(strip $(NO_NETCDF)), yes) ifneq ($(strip $(NO_NETCDF)), yes)
NETCDFLIB = -L/sw2/lib -lnetcdff -lnetcdf NETCDFLIB = -L/opt/local/lib -lnetcdff -lnetcdf
NETCDFINC = -I/sw2/include NETCDFINC = -I/opt/local/include
NCUGRIDLIB = -lncugrid NCUGRIDLIB = -lncugrid
endif endif
# SET MORE DIRECTORY PATHS # SET MORE DIRECTORY PATHS
MAINDIR = $(ROOTDIR)/amatos2d/trunk MAINDIR = $(ROOTDIR)/amatos2d
BUILDIR = $(MAINDIR)/compile/$(MACHINE) BUILDIR = $(MAINDIR)/compile/$(MACHINE)
LIBDIR = $(MAINDIR)/lib/$(MACHINE) LIBDIR = $(ROOTDIR)/lib/$(MACHINE)
INCDIR = $(MAINDIR)/include/$(MACHINE) INCDIR = $(ROOTDIR)/include/$(MACHINE)
DATDIR = $(MAINDIR)/data DATDIR = $(MAINDIR)/data
SRCDIR = $(MAINDIR)/src SRCDIR = $(MAINDIR)/src
...@@ -133,7 +134,7 @@ MF = -D ...@@ -133,7 +134,7 @@ MF = -D
# --------------------- next are for debugging ------------------# # --------------------- next are for debugging ------------------#
ifeq ($(strip $(MODE)),debug) ifeq ($(strip $(MODE)),debug)
FFLAGS = -fbounds-check -ggdb -fpic -funderscoring # -C FFLAGS = -fbounds-check -ggdb -fpic -funderscoring # -C
CFLAGS = -ggdb -fpic CFLAGS = -ggdb -fpic -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
LDFLAGS = -ggdb -mmacosx-version-min=10.11 LDFLAGS = -ggdb -mmacosx-version-min=10.11
SHFLAGS = -fpic -dynamiclib -mmacosx-version-min=10.11 SHFLAGS = -fpic -dynamiclib -mmacosx-version-min=10.11
endif endif
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment