Skip to content
Snippets Groups Projects
compile.sh 862 B
Newer Older
Gab's avatar
Gab committed
#!/bin/bash

if [ -z "$1" ]
  then
    echo "Please provide the targeted machine from:"
    ls machines/
    echo ""
    echo "Example: ./compile.sh occigen-bdw"
    exit 1
fi
env_file="machines/$1/env_bench"

if [ ! -f $env_file ] 
	then
    echo "ERROR: $env_file not found!"
		exit 1
	else
		source $env_file	
fi

Gab's avatar
Gab committed
#xios-2.5 directory must be a sub-directory of NEMO/release-4.0
audiffren's avatar
audiffren committed
# 1. Prepare an arch file for the target machine 
Gab's avatar
Gab committed
#cp machines/$1/arch-XIOS.fcm xios-2.5/arch/arch-$1.fcm
#cd xios-2.5
#./make_xios --arch $1 -j 8
#cd -

audiffren's avatar
audiffren committed
#NEMO
audiffren's avatar
audiffren committed
#create a configuration file for the targeted machine ( i.e. irene) arch-irene.fcm
audiffren's avatar
audiffren committed
# lancement de la compilation pour BENCH
Gab's avatar
Gab committed
cp machines/$1/arch-NEMO.fcm release-4.0/arch/arch-$1.fcm
Gab's avatar
Gab committed
cd release-4.0
Gab's avatar
Gab committed
  ./makenemo -m $1 -a BENCH -v3
audiffren's avatar
audiffren committed
#
# Find the produced exec 
#
# find . -name nemo.exe
# ./tests/BENCH/BLD/bin/nemo.exe
#