Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create bootstrap Makefile #20

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions tracer/Makefile.bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# This bootstrap Makefile clones and builds ROSS
# and CODES libraries, then builds TraceR
#
# Input: ARCH, CC, CXX variables
# Defaults to x86_64 and typical compilers for MPI
# builds. Change to match your target platform
#

ARCH = x86_64
CC = mpicc
CXX = mpicxx

all:
mkdir -p .repos .local
git clone -b master --single-branch https://github.com/carothersc/ROSS .repos/ROSS || git -C .repos/ROSS clean -fx && git -C .repos/ROSS pull
cd .repos/ROSS && \
git checkout 17e9d7b455be32fc2b085f38d9a5b3cc30c37101 && \
ARCH=$(ARCH) CC=$(CC) CXX=$(CXX) cmake -DCMAKE_INSTALL_PREFIX=../../.local && \
make install
git clone -b master --single-branch https://xgitlab.cels.anl.gov/codes/codes.git .repos/codes || git -C .repos/codes clean -fx && git -C .repos/codes pull
cd .repos/codes && \
git checkout f28191b7c11bb0a64b6e803587a00de17fee4784 && \
./prepare.sh && \
./configure --prefix="$(PWD)"/.local CC=$(CC) CXX=$(CXX) PKG_CONFIG_PATH="$(PWD)"/.local/lib/pkgconfig && \
make install
make ROSS_DIR="$(PWD)"/.local CODES_DIR="$(PWD)"/.local -f Makefile all
@echo "\nAll done. Enjoy!\n"

.PHONY: clean
clean:
rm -rf .repos .local
make -f Makefile clean