-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (24 loc) · 910 Bytes
/
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
SRCS=src/eris-kernel.c src/eris-analysis.c src/eris-config.c src/eris-lattice.c src/eris-main.c
eris: ${SRCS}
gcc -O4 -std=gnu11 -o eris src/eris-main.c -lm -lconfig
debug: ${SRCS}
gcc -std=gnu11 -lm -lconfig -o eris -g src/eris-main.c
eris-openmp: ${SRCS}
gcc -O4 -std=gnu11 -lm -lconfig -fopenmp -o eris src/eris-main.c
eris-mac-openmp: ${SRCS}
/usr/local/bin/gcc-4.8 -std=gnu11 -O4 -lm -lconfig -fopenmp -lgomp -o eris src/eris-main.c
profile: ${SRCS}
gcc -std=gnu11 -lm -lconfig -o eris src/eris-main.c -pg
cx1-icc:
icc -std=c99 -Llibconfig-1.5/lib -Ilibconfig-1.5/lib \
-O4 -o eris src/eris-main.c libconfig-1.5/lib/.libs/libconfig.a
parallel: eris
seq 0 50 1000 | parallel ./eris {}
all: eris
clean:
rm eris
cleanupdata:
rm *.dat *.in *.cube *.POSCAR Eris.log
test: # Mainly for Travis CI testing
gcc -O4 -std=gnu11 -o eris-test src/eris-test.c -lm -lconfig
./eris-test