DAMASK_EICMD/Makefile

38 lines
1.3 KiB
Makefile
Raw Normal View History

2016-05-18 11:51:09 +05:30
SHELL = /bin/sh
########################################################################################
# Makefile for the installation of DAMASK
########################################################################################
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
all: grid mesh 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;)
.PHONY: spectral
spectral: grid
2016-05-18 11:51:09 +05:30
.PHONY: mesh
mesh: build/mesh
2019-04-29 13:48:39 +05:30
@(cd build/mesh; make -j4 all install;)
.PHONY: FEM
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
.PHONY: build/mesh
build/mesh:
@mkdir -p build/mesh
@(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} ../../;)
2016-05-18 11:51:09 +05:30
.PHONY: clean
clean:
@rm -rf build
.PHONY: processing
processing:
@./installation/symlink_Processing.py ${MAKEFLAGS}