-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSynWood_compile.sh
36 lines (35 loc) · 1.27 KB
/
SynWood_compile.sh
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
#!/bin/bash -
#===============================================================================
#
# FILE: SynWood_compile.sh
#
# USAGE: ./SynWood_compile.sh
#
# DESCRIPTION: Allow to compile in one line everything needed for SynWood
# Nota: with the MAKEFLAGS allows to analyse core-dumps:
# ulimit -c 2000
# R -d gdb
# core-file core
# or directly navigage a segfault:
# ulimit -c 2000
# R -d gdb
# R
# source("daisyChainMCMC.R")
# if segfault will stop saying a lot and
# p myvariable
# will print the state of my variable!
#
# OPTIONS: ---
# REQUIREMENTS: gsl (on ubuntu libgsl0-dev)
# BUGS: ---
# NOTES: ---
# AUTHORS: KS, CB
# ORGANIZATION:
# CREATED: 05/09/2013 03:31:25 PM EDT
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
rm *.o
R CMD SHLIB kmeans.c
MAKEFLAGS="CFLAGS=-g" R CMD SHLIB -lgsl -lgslcblas -lm functions_migration.c samlmu.f
# R CMD SHLIB -lgsl -lgslcblas -lm functions_migration.c samlmu.f