2016-03-06 02:14:30 +05:30
|
|
|
SHELL = /bin/sh
|
|
|
|
########################################################################################
|
|
|
|
# Makefile for the installation of DAMASK
|
|
|
|
########################################################################################
|
|
|
|
.PHONY: all
|
2016-04-19 04:02:08 +05:30
|
|
|
all: spectral FEM
|
2016-03-06 02:14:30 +05:30
|
|
|
|
2016-04-19 04:02:08 +05:30
|
|
|
|
2016-04-20 00:22:36 +05:30
|
|
|
spectral: build/spectral
|
2016-04-20 01:15:24 +05:30
|
|
|
@(cd build/spectral; )
|
2016-04-20 00:22:36 +05:30
|
|
|
|
|
|
|
|
|
|
|
build/spectral: build
|
|
|
|
@mkdir build/spectral
|
2016-04-20 01:15:24 +05:30
|
|
|
@(cd build/spectral; cmake -Wno-dev -DCMAKE_VERBOSE_MAKEFILE=OFF -DOPENMP=ON -DOPTIMIZATION=DEFENSIVE -DDAMASK_DRIVER=SPECTRAL ../..;)
|
2016-04-20 00:22:36 +05:30
|
|
|
|
2016-04-19 04:02:08 +05:30
|
|
|
|
|
|
|
build:
|
2016-04-20 00:22:36 +05:30
|
|
|
@mkdir build
|
|
|
|
|
2016-03-06 02:14:30 +05:30
|
|
|
|
|
|
|
.PHONY: FEM
|
|
|
|
FEM:
|
|
|
|
$(MAKE) DAMASK_FEM.exe -C src
|
|
|
|
|
|
|
|
.PHONY: marc
|
|
|
|
marc:
|
|
|
|
@./installation/mods_MarcMentat/apply_DAMASK_modifications.sh ${MAKEFLAGS}
|
|
|
|
|
|
|
|
.PHONY: processing
|
|
|
|
processing:
|
|
|
|
@if hash cython 2>/dev/null; then \
|
|
|
|
cd ./lib/damask; \
|
|
|
|
CC=gcc python setup_corientation.py build_ext --inplace; \
|
|
|
|
rm -rv build; \
|
|
|
|
rm *.c; \
|
|
|
|
fi
|
|
|
|
@./installation/compile_CoreModule.py ${MAKEFLAGS}
|
|
|
|
|
|
|
|
.PHONY: tidy
|
|
|
|
tidy:
|
|
|
|
@$(MAKE) tidy -C src >/dev/null
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
|
2016-04-19 04:02:08 +05:30
|
|
|
clean:
|
|
|
|
rm -rvf build
|