2016-05-18 11:51:09 +05:30
|
|
|
SHELL = /bin/sh
|
2021-03-27 14:40:35 +05:30
|
|
|
|
|
|
|
###################################################################################################
|
|
|
|
# One-command-build invoking CMake (meant for developers, should not be part of the distribution)
|
|
|
|
###################################################################################################
|
|
|
|
|
2016-05-18 11:51:09 +05:30
|
|
|
.PHONY: all
|
2021-03-26 17:37:05 +05:30
|
|
|
all: grid mesh
|
2019-03-26 13:57:55 +05:30
|
|
|
|
|
|
|
.PHONY: grid
|
2020-12-11 04:44:59 +05:30
|
|
|
grid:
|
2021-07-04 20:31:24 +05:30
|
|
|
@cmake -B build/grid -DDAMASK_SOLVER=grid -DCMAKE_INSTALL_PREFIX=${PWD} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILDCMD_POST=${BUILDCMD_POST} -DBUILDCMD_PRE=${BUILDCMD_PRE} -DOPTIMIZATION=${OPTIMIZATION} -DOPENMP=${OPENMP}
|
2022-01-10 01:18:58 +05:30
|
|
|
@cmake --build build/grid --parallel --target install
|
2016-05-18 11:51:09 +05:30
|
|
|
|
2019-04-28 15:37:15 +05:30
|
|
|
.PHONY: mesh
|
2020-12-11 04:44:59 +05:30
|
|
|
mesh:
|
2021-07-04 20:31:24 +05:30
|
|
|
@cmake -B build/mesh -DDAMASK_SOLVER=mesh -DCMAKE_INSTALL_PREFIX=${PWD} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILDCMD_POST=${BUILDCMD_POST} -DBUILDCMD_PRE=${BUILDCMD_PRE} -DOPTIMIZATION=${OPTIMIZATION} -DOPENMP=${OPENMP}
|
2022-01-10 01:18:58 +05:30
|
|
|
@cmake --build build/mesh --parallel --target install
|
2017-02-04 03:53:55 +05:30
|
|
|
|
2023-02-25 02:57:56 +05:30
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
@cmake -B build/test -DDAMASK_SOLVER=test -DCMAKE_INSTALL_PREFIX=${PWD} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILDCMD_POST=${BUILDCMD_POST} -DBUILDCMD_PRE=${BUILDCMD_PRE} -DOPTIMIZATION=${OPTIMIZATION} -DOPENMP=${OPENMP}
|
|
|
|
@cmake --build build/test --parallel --target install
|
|
|
|
|
2016-05-18 11:51:09 +05:30
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-02-04 03:53:55 +05:30
|
|
|
@rm -rf build
|