-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigAll.sh
More file actions
executable file
·36 lines (28 loc) · 1.18 KB
/
ConfigAll.sh
File metadata and controls
executable file
·36 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
# Created by Michael Marshall on 02/11/2024.
set -e
cd "${0%/*}"
echo "Configuring SemiLep and MLU in $PWD"
Config=${Config-Debug}
BuildDir=build$Config
Prefix=$HOME/.local$Config
Pkg=/opt/local # MacPorts packages
if [ "${1@L}" = clean ]
then
shopt -s globstar
rm -rf **/autom4te.cache {,MLU/}build* || :
rm **/{aclocal.m4,ar-lib,compile,config.guess,config.sub,configure,depcomp,install-sh,ltmain.sh,missing,Makefile.in,*onfig.h.in,*~} || :
autoreconf -fvi
fi
set -x
mkdir "$BuildDir"
cd "$BuildDir"
#../configure CXX=mpicxx-openmpi-mp CC=mpicc-openmpi-mp CPPFLAGS="-I$Pkg/include -I$Pkg/include/libomp -Xpreprocessor -fopenmp" LDFLAGS="-L$Pkg/lib -L$Pkg/lib/libomp" LIBS="-lomp" --with-cxx=clang++ --with-cc=clang --with-cblas="-framework Accelerate" --with-minuit2="$HOME/.local" --prefix="$Prefix"
../configure CC=clang CPPFLAGS="-I$Pkg/include -I$Pkg/include/libomp -Xpreprocessor -fopenmp" LDFLAGS="-L$Pkg/lib -L$Pkg/lib/libomp" LIBS="-lomp" --with-cblas="-framework Accelerate" --with-minuit2="$HOME/.local" --prefix="$Prefix"
make -j 20
make install
otool -L "$Prefix"/{bin/{Co,De,xml3}*,lib/*.*.dylib}
set +e
$Prefix/bin/Continuum
$Prefix/bin/Debug
$Prefix/bin/xml3pt