forked from wuyangf7/OPERA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (56 loc) · 1.38 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# -----------------------------------------------------------------
# Makefile for OPERA
#
# Supported platforms: Unix / Linux
# ---------------------------------------------------------------------
# Directory of the target
OUTPUT = opera_Linux
# Compiler
CXX = g++
# EIGEN library
EIGEN_PATH = $(EIGEN3_INCLUDE_DIR)
BOOST = /home/uqywu16/90days/program/lib/boost_1_61_0
# Intel MKL library
#MKL_PATH = /opt/intel/mkl
# Compiler flags
CXXFLAGS = -w -O3 -m64 -fopenmp -I $(BOOST) -I $(EIGEN_PATH) -DEIGEN_NO_DEBUG -std=c++11
#LIB += -static -lz -Wl,-lm -ldl
LIB += -static -lz -lgomp
HDR += CommFunc.h \
cdflib.h \
dcdflib.h \
SMR.h \
ipmpar.h \
StatFunc.h \
StrFunc.h \
SMR_data.h \
SMR_plot.h \
SMR_data_p1.h \
SMR_data_p2.h \
stat.hpp \
bfile.hpp \
SMR_data_p3.h
SRC = SMR.cpp \
CommFunc.cpp \
SMR_data.cpp \
dcdflib.cpp \
StatFunc.cpp \
StrFunc.cpp \
SMR_plot.cpp \
SMR_data_p1.cpp \
SMR_data_p2.cpp \
stat.cpp \
bfile.cpp \
SMR_data_p3.cpp
OBJ = $(SRC:.cpp=.o)
all : $(OUTPUT)
$(OUTPUT) :
$(CXX) $(CXXFLAGS) -o $(OUTPUT) $(OBJ) $(LIB)
$(OBJ) : $(HDR)
.cpp.o :
$(CXX) $(CXXFLAGS) -c $*.cpp
.SUFFIXES : .cpp .c .o $(SUFFIXES)
$(OUTPUT) : $(OBJ)
FORCE:
clean:
rm -f *.o