Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loadbalancing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SLMS
loadbalancing
Commits
033b0ab9
Commit
033b0ab9
authored
4 years ago
by
Stephan Schulz
Browse files
Options
Downloads
Patches
Plain Diff
make sure flags are proper for VTK and Voronoi in makefile
parent
379a796b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!15
CMake projectconfig
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
example/MakefileProject/Makefile
+10
-8
10 additions, 8 deletions
example/MakefileProject/Makefile
with
10 additions
and
8 deletions
example/MakefileProject/Makefile
+
10
−
8
View file @
033b0ab9
...
@@ -27,6 +27,7 @@ LIBALL_INCLUDE := -I$(ALL_DIR)/include/modules -I$(ALL_DIR)/include
...
@@ -27,6 +27,7 @@ LIBALL_INCLUDE := -I$(ALL_DIR)/include/modules -I$(ALL_DIR)/include
LIBALL_LIB
:=
$(
ALL_DIR
)
/lib/libALL_fortran.a
$(
ALL_DIR
)
/lib/libALL.a
LIBALL_LIB
:=
$(
ALL_DIR
)
/lib/libALL_fortran.a
$(
ALL_DIR
)
/lib/libALL.a
LIBALL_LIB
+=
$(
ALL_DIR
)
/lib/libvoro.a
LIBALL_LIB
+=
$(
ALL_DIR
)
/lib/libvoro.a
LIBALL_CONFIG_FILE
:=
$(
ALL_DIR
)
/lib/cmake/ALL/ALLConfig.cmake
LIBALL_CONFIG_FILE
:=
$(
ALL_DIR
)
/lib/cmake/ALL/ALLConfig.cmake
LIBALL_DEFINES
+=
-DALL_VTK_OUTPUT
-DALL_VORONOI_ACTIVE
LIBALL_CONFIGURE
:=
-DCM_ALL_FORTRAN
=
ON
-DCM_ALL_VORONOI
=
ON
-DCM_ALL_VTK_OUTPUT
=
ON
-DCMAKE_BUILD_TYPE
=
Release
LIBALL_CONFIGURE
:=
-DCM_ALL_FORTRAN
=
ON
-DCM_ALL_VORONOI
=
ON
-DCM_ALL_VTK_OUTPUT
=
ON
-DCMAKE_BUILD_TYPE
=
Release
...
@@ -34,6 +35,9 @@ LIBALL_CONFIGURE := -DCM_ALL_FORTRAN=ON -DCM_ALL_VORONOI=ON -DCM_ALL_VTK_OUTPUT=
...
@@ -34,6 +35,9 @@ LIBALL_CONFIGURE := -DCM_ALL_FORTRAN=ON -DCM_ALL_VORONOI=ON -DCM_ALL_VTK_OUTPUT=
# explicitly state it.
# explicitly state it.
FFLAGS
+=
-lstdc
++
FFLAGS
+=
-lstdc
++
FLAGS
+=
-DTEST_VTK_OUTPUT
-DTEST_VORONOI
FLAGS
+=
$(
LIBALL_DEFINES
)
# The linking order of VTK can be gleaned from the CMake invocation of any
# The linking order of VTK can be gleaned from the CMake invocation of any
# executable of the library. Just compile the library using `VERBOSE=1` and the
# executable of the library. Just compile the library using `VERBOSE=1` and the
# command lines are output as well.
# command lines are output as well.
...
@@ -57,21 +61,19 @@ clean-ext-liball:
...
@@ -57,21 +61,19 @@ clean-ext-liball:
rm
-rf
$(
ALL_BUILD
)
$(
ALL_DIR
)
rm
-rf
$(
ALL_BUILD
)
$(
ALL_DIR
)
# Our projects executables:
# Our projects executables:
ALL_Staggered
:
ALL_Staggered.cpp
liball
ALL_Staggered
:
ALL_Staggered.cpp
$(LIBALL_CONFIG_FILE)
$(
MCXX
)
$(
CXXFLAGS
)
$(
INCLUDES
)
$<
$(
LIBS
)
-o
$@
$(
MCXX
)
$(
FLAGS
)
$(
CXXFLAGS
)
$(
INCLUDES
)
$<
$(
LIBS
)
-o
$@
ALL_Staggered_f
:
ALL_Staggered_f.F90
liball
ALL_Staggered_f
:
ALL_Staggered_f.F90
$(LIBALL_CONFIG_FILE)
$(
MFC
)
$(
FFLAGS
)
$(
INCLUDES
)
$<
$(
LIBS
)
-o
$@
$(
MFC
)
$(
FLAGS
)
$(
FFLAGS
)
$(
INCLUDES
)
$<
$(
LIBS
)
-o
$@
ALL_test.cpp
:
ALL_test_src.cpp
ALL_test.cpp
:
ALL_test_src.cpp
$(
shell
cat
$<
|
sed
-e
's/ALL_VTK_OUTPUT/TEST_VTK_OUTPUT/'
-e
's/ALL_VORONOI_ACTIVE/TEST_VORONOI/'
>
$@
)
$(
shell
cat
$<
|
sed
-e
's/ALL_VTK_OUTPUT/TEST_VTK_OUTPUT/'
-e
's/ALL_VORONOI_ACTIVE/TEST_VORONOI/'
>
$@
)
ALL_test
:
ALL_test.cpp
liball
ALL_test
:
ALL_test.cpp
$(LIBALL_CONFIG_FILE)
$(
MCXX
)
$(
CXXFLAGS
)
$(
INCLUDES
)
$<
$(
LIBS
)
-o
$@
$(
MCXX
)
$(
FLAGS
)
$(
CXXFLAGS
)
$(
INCLUDES
)
$<
$(
LIBS
)
-o
$@
# The library part follows:
# The library part follows:
liball
:
$(LIBALL_CONFIG_FILE)
$(LIBALL_CONFIG_FILE)
:
$(LIBALL_CONFIG_FILE)
:
rm
-rf
$(
ALL_BUILD
)
rm
-rf
$(
ALL_BUILD
)
mkdir
-p
$(
ALL_BUILD
)
mkdir
-p
$(
ALL_BUILD
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment