Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
cf3cfb5d
Commit
cf3cfb5d
authored
Mar 17, 2011
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
And some more work on Makefile.
parent
f9b3cffd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
26 deletions
+6
-26
AMDiS/other/include/Makefile_AMDiS.mk
AMDiS/other/include/Makefile_AMDiS.mk
+6
-25
demo/Makefile
demo/Makefile
+0
-1
No files found.
AMDiS/other/include/Makefile_AMDiS.mk
View file @
cf3cfb5d
...
...
@@ -4,23 +4,21 @@ PARMETIS_DIR = $(AMDIS_DIR)/lib/ParMetis-3.1
# ===== includes pathes ======================================================
# ============================================================================
AMDIS_INCLUDE
=
-I
$(AMDIS_DIR)
/src
-I
$(AMDIS_DIR)
/compositeFEM/src
-I
$(AMDIS_DIR)
/lib/mtl4
MPCCI_INCLUDE
=
-I
$(MPCCI_DIR)
/include
AMDIS_INCLUDE
=
-I
$(AMDIS_DIR)
/include
-I
$(AMDIS_DIR)
/include/compositeFEM
-I
$(AMDIS_DIR)
/include/reinit
-I
$(AMDIS_DIR)
/include/mtl4
PARMETIS_INCLUDE
=
-I
$(PARMETIS_DIR)
PARALLEL_INCLUDE
=
-I
$(AMDIS_DIR)
/src/parallel
REINIT_INCLUDE
=
-I
$(AMDIS_DIR)
/Reinit/src
INCLUDES
=
-I
.
$(AMDIS_INCLUDE)
$(MPCCI_INCLUDE)
$(REINIT_INCLUDE)
$(PARALLEL_INCLUDE)
INCLUDES
=
-I
.
$(AMDIS_INCLUDE)
$(PARALLEL_INCLUDE)
# ============================================================================
# ===== libraries ============================================================
# ============================================================================
AMDIS_LIB
=
-L
$(AMDIS_DIR)
/lib
-lamdis
-lcompositeFEM
AMDIS_LIB
=
-L
$(AMDIS_DIR)
/lib
-lamdis
-lcompositeFEM
-lreinit
PNG_LIB
=
LIBS
=
UMFPACK_LIB
=
-L
$(AMDIS_DIR)
/lib/AMD/Lib
-L
$(AMDIS_DIR)
/lib/UMFPACK/Lib
UMFPACK_LIB
=
ifeq
($(strip $(USE_SERVER)), mars)
UMFPACK_LIB
+=
-lmkl
-lumfpack
-lamd
else
...
...
@@ -37,7 +35,6 @@ else
endif
endif
MPCCI_LIB
=
-L
$(MPCCI_DIR)
/lib/linux-x86-glibc22
-lmpcci
PARMETIS_LIB
=
-L
$(PARMETIS_DIR)
-lparmetis
-lmetis
ZOLTAN_LIB
=
-L
$(AMDIS_DIR)
/lib/zoltan_build/lib
-lzoltan
...
...
@@ -47,7 +44,7 @@ LIBS += -lboost_iostreams -lboost_filesystem -lboost_system -lboost_date_time
ifeq
($(strip $(USE_UMFPACK)), 1)
LIBS
+=
$(UMFPACK_LIB)
CPPFLAGS
+=
-DHAVE_UMFPACK
-DMTL_HAS_UMFPACK
INCLUDES
+=
-I
$(AMDIS_DIR)
/
lib/UMFPACK/Include
-I
$(AMDIS_DIR)
/
lib/UF
config
-I
$(AMDIS_DIR)
/
lib/AMD/I
nclude
INCLUDES
+=
-I
$(AMDIS_DIR)
/
include/umfpack
-I
$(AMDIS_DIR)
/
include/uf
config
-I
$(AMDIS_DIR)
/
i
nclude
/amd
endif
ifeq
($(strip $(USE_MKL)), 1)
...
...
@@ -60,14 +57,6 @@ ifeq ($(strip $(USE_MKL)), 1)
LIBS
+=
-lmkl
-lmkl_solver
-lguide
-lpthread
endif
ifeq
($(strip $(USE_MPCCI)), 1)
LIBS
+=
$(MPCCI_LIB)
endif
ifeq
($(strip $(USE_REINIT)), 1)
LIBS
+=
-L
$(AMDIS_DIR)
/Reinit/lib
-lreinit
endif
# ============================================================================
# ===== parallel or sequential ? =============================================
# ============================================================================
...
...
@@ -113,19 +102,11 @@ else
CPPFLAGS
+=
-g
-O0
-DDEBUG
=
1
endif
ifeq
($(strip $(USE_OPENMP)), 1)
ifeq
($(strip $(USE_COMPILER)), gcc)
CPPFLAGS
+=
-fopenmp
else
CPPFLAGS
+=
-openmp
endif
endif
# ============================================================================
# ===== object directory =====================================================
# ============================================================================
ifeq
($(OBJDIR),)
OBJDIR
=
.
OBJDIR
=
.
endif
# ============================================================================
# ===== libtool linking ======================================================
...
...
demo/Makefile
View file @
cf3cfb5d
...
...
@@ -5,7 +5,6 @@ SHELL = /bin/sh
# ============================================================================
USE_PARALLEL_AMDIS
=
0
# 1 if AMDiS was compiled with parallel support, 0 otherwise
USE_OPENMP
=
0
# 1 if AMDiS was compiled with OpenMP support, 0 otherwise
USE_UMFPACK
=
1
# 1 if AMDiS was compiled with UMFPACK library, 0 otherwise
USE_MKL
=
0
# 1 if AMDiS was compiled with Intel MKL library, 0 otherwise
USE_SERVER
=
# mars, deimos or themisto. If no special server blank
...
...
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