-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·43 lines (31 loc) · 1.35 KB
/
Makefile
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
37
38
39
40
41
cfastcov_dir := cfastcov/
cfastcov := $(cfastcov_dir)twobessel.c $(cfastcov_dir)utils.c $(cfastcov_dir)utils_complex.c
opt_home := -std=c99 -Wno-missing-braces -Wno-missing-field-initializers -I/usr/local/include -L/usr/local/lib -lgsl -lfftw3 -lgslcblas -lm -g -O3 -std=gnu99 -ffast-math -funroll-loops -L../cosmolike_core/class -lclass
opt_ocelote := -std=c99 -Wno-missing-braces -Wno-missing-field-initializers \
-I/cm/shared/uaapps/gsl/2.1/include -L/cm/shared/uaapps/gsl/2.1/lib \
-lfftw3 -lgsl -lgslcblas -lm -g -O3 \
-ffast-math -funroll-loops -std=gnu99 -L../cosmolike_core/class -lclass
cfftlog_dir := ../cosmolike_core/cfftlog/
cfftlog := $(cfftlog_dir)cfftlog.c $(cfftlog_dir)utils.c $(cfftlog_dir)utils_complex.c
home:
make home_shared
make home_datav
make home_cov
home_datav:
gcc like_fourier.c -o ./like_fourier $(opt_home)
home_cov:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier $(opt_home)
home_shared:
gcc -shared -o like_fourier.so -fPIC like_fourier.c $(opt_home)
ocelote:
make ocelote_shared
make ocelote_datav
make ocelote_cov
ocelote_datav:
gcc like_fourier.c -o ./like_fourier $(opt_ocelote)
ocelote_cov:
gcc compute_covariances_fourier.c -o ./compute_covariances_fourier $(opt_ocelote)
ocelote_shared:
gcc -shared -o like_fourier.so -fPIC like_fourier.c $(opt_ocelote)
class:
cd ../cosmolike_core/class; $(MAKE)