2016-05-18 11:51:09 +05:30
|
|
|
SHELL = /bin/sh
|
|
|
|
########################################################################################
|
|
|
|
# Makefile for the installation of DAMASK
|
|
|
|
########################################################################################
|
2020-04-29 15:20:43 +05:30
|
|
|
DAMASK_ROOT = $(shell python3 -c "import os,sys; print(os.path.normpath(os.path.realpath(os.path.expanduser('$(pwd)'))))")
|
2016-05-18 11:51:09 +05:30
|
|
|
.PHONY: all
|
2020-01-14 03:56:40 +05:30
|
|
|
all: grid mesh processing
|
2019-03-26 13:57:55 +05:30
|
|
|
|
|
|
|
.PHONY: grid
|
|
|
|
grid: build/grid
|
2020-03-19 22:04:11 +05:30
|
|
|
@(cd build/grid;make -j${DAMASK_NUM_THREADS} all install;)
|
2020-04-25 13:26:51 +05:30
|
|
|
@rm -f ${DAMASK_ROOT}/bin/DAMASK_spectral > /dev/null || true
|
|
|
|
@ln -s ${DAMASK_ROOT}/bin/DAMASK_grid ${DAMASK_ROOT}/bin/DAMASK_spectral
|
2017-03-16 05:13:04 +05:30
|
|
|
.PHONY: spectral
|
2019-04-28 15:37:15 +05:30
|
|
|
spectral: grid
|
2016-05-18 11:51:09 +05:30
|
|
|
|
2019-04-28 15:37:15 +05:30
|
|
|
.PHONY: mesh
|
|
|
|
mesh: build/mesh
|
2020-03-19 22:04:11 +05:30
|
|
|
@(cd build/mesh; make -j${DAMASK_NUM_THREADS} all install;)
|
2020-04-25 13:26:51 +05:30
|
|
|
@rm -f ${DAMASK_ROOT}/bin/DAMASK_FEM > /dev/null || true
|
|
|
|
@ln -s ${DAMASK_ROOT}/bin/DAMASK_mesh ${DAMASK_ROOT}/bin/DAMASK_FEM
|
2017-03-16 05:13:04 +05:30
|
|
|
.PHONY: FEM
|
2019-04-28 15:37:15 +05:30
|
|
|
FEM: mesh
|
2016-05-18 11:51:09 +05:30
|
|
|
|
2019-03-23 13:57:58 +05:30
|
|
|
.PHONY: build/grid
|
|
|
|
build/grid:
|
|
|
|
@mkdir -p build/grid
|
2019-04-26 13:30:29 +05:30
|
|
|
@(cd build/grid; cmake -Wno-dev -DDAMASK_SOLVER=GRID -DCMAKE_INSTALL_PREFIX=${DAMASK_ROOT} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILDCMD_POST=${BUILDCMD_POST} -DBUILDCMD_PRE=${BUILDCMD_PRE} -DOPTIMIZATION=${OPTIMIZATION} -DOPENMP=${OPENMP} ../../;)
|
2017-02-04 01:05:32 +05:30
|
|
|
|
2019-04-28 15:37:15 +05:30
|
|
|
.PHONY: build/mesh
|
|
|
|
build/mesh:
|
|
|
|
@mkdir -p build/mesh
|
2020-01-03 02:12:28 +05:30
|
|
|
@(cd build/mesh; cmake -Wno-dev -DDAMASK_SOLVER=MESH -DCMAKE_INSTALL_PREFIX=${DAMASK_ROOT} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILDCMD_POST=${BUILDCMD_POST} -DBUILDCMD_PRE=${BUILDCMD_PRE} -DOPTIMIZATION=${OPTIMIZATION} -DOPENMP=${OPENMP} ../../;)
|
2017-02-04 03:53:55 +05:30
|
|
|
|
2016-05-18 11:51:09 +05:30
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-02-04 03:53:55 +05:30
|
|
|
@rm -rf build
|
2014-01-11 18:16:30 +05:30
|
|
|
|
2017-02-04 03:53:55 +05:30
|
|
|
.PHONY: processing
|
2017-03-16 05:13:04 +05:30
|
|
|
processing:
|
2014-01-15 04:03:15 +05:30
|
|
|
@./installation/symlink_Processing.py ${MAKEFLAGS}
|