-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 713 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 713 Bytes
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
#My first mae file
# Keep it as simple as possible
#
# Compiler
# g++
CXX = g++
# Series of useful tokens for compilation and linking
LIBTOKEN = -L
LIBPATH = /home/sdea/armadillo-7.800.2
ARMALIB = -larmadillo
# This is to use optimized version of LAPACK and OPENBLAS in MacOS
LIB_OS = -framework Accelerate
# Optimization flac
OPT = -O3
OPTFLAG = -march=native
DYLIB = $(LIBTOKEN) $(LIBPATH) $(ARMALIB)
# Search directory where to find the armadillo library
ARMADIR = /home/sdea/armadillo-7.800.2/include
IFLAG = -I
IDIR = $(IFLAG) $(ARMADIR)
# Name of the output file
OUTNAME = main_martina3
$(OUTNAME): main_martina3.cpp
$(CXX) -o $(OUTNAME) main_martina3.cpp $(OPT) $(OPTFLAG) $(DYLIB) $(IDIR)