2016-05-18 11:51:09 +05:30
|
|
|
SHELL = /bin/sh
|
|
|
|
########################################################################################
|
|
|
|
# Makefile for the installation of DAMASK
|
|
|
|
########################################################################################
|
2019-04-25 10:38:32 +05:30
|
|
|
DAMASK_ROOT = $(shell python -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
|
2019-12-13 01:01:04 +05:30
|
|
|
all: grid mesh python processing
|
2019-03-26 13:57:55 +05:30
|
|
|
|
|
|
|
.PHONY: grid
|
|
|
|
grid: build/grid
|
2019-04-29 13:48:39 +05:30
|
|
|
@(cd build/grid;make -j4 all install;)
|
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
|
2019-04-29 13:48:39 +05:30
|
|
|
@(cd build/mesh; make -j4 all install;)
|
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
|
|
|
|
@(cd build/mesh; cmake -Wno-dev -DDAMASK_SOLVER=FEM -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}
|
2014-01-11 18:16:30 +05:30
|
|
|
|
2019-12-13 01:01:04 +05:30
|
|
|
.PHONY: python
|
|
|
|
python:
|
|
|
|
@pip install --user ./python
|
|
|
|
|