forked from pmrauscher/NESI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·52 lines (38 loc) · 946 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FAST= -fast
OMP= -fopenmp
CCINTEL=icpc
CCMPI=mpicxx
CCMPIINTEL=mpiicpc
MPIFAST=-0fast
FLAGS= -O3
DEBUG= -g -p
FAST = -fast
CC = g++
SRCS = main.cpp mersenne.cpp
TEST_SRCS = test.cpp mersenne.cpp
OBJS = $(SRCS)
TEST_OBJS = $(TEST_SRCS)
main: $(OBJS)
$(CC) $(OBJS) $(FLAGS) -o nesi -w -std=c++11
omp: $(OBJS)
$(CC) $(OBJS) $(FLAGS) $(OMP) -o nesi_omp -w -std=c++11
test: $(TEST_OBJS)
$(CC) $(TEST_OBJS) $(FLAGS) -o test -w -std=c++11
test_omp: $(TEST_OBJS)
$(CC) $(TEST_OBJS) $(FLAGS) $(OMP) -o test -w -std=c++11
mpi: $(OBJS)1
$(CCMPIINTEL) $(OBJS) $(MPIFAST) -lm -w -o dsa
mpi_debug: $(OBJS)
$(CCMPI) $(OBJS) $(DEBUG) -o dsa
intelfast: $(OBJS)
$(CCINTEL) $(OBJS) $(FAST) -o dsa
intelstatic: $(OBJS)
$(CCINTEL) $(OBJS) $(FAST) -ipo -o dsa
fast: $(OBJS)
$(CC) $(OBJS) $(FAST) -o dsa
debug: $(OBJS)
$(CC) $(OBJS) $(DEBUG) -w -o debug
%.cpp.o: %.cpp
$(CC) $(FLAGS) $(DEBUG) -c -o $@ $<
clean:
rm *.cpp.o