-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (34 loc) · 863 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
CXX=g++
LD=g++
USER_BLAS=gslcblas
CXXFLAGS=-Wall -pedantic -std=c++11 -O3 -D_GNU_SOURCE_ -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDBGLEVEL=0 -DPROGNFO -I -Lsrc -DPCGRNG
LDFLAGS=-L/usr/local/lib -lm -lpthread -lgsl
# if armadillo
#LDFLAGS += -larmadillo
LDFLAGS += -l${USER_BLAS}
CTAGS=ctags > tags
LIBS=
METSEGOBJ = src/manopt.o\
src/memory.o\
src/debug.o\
src/info.o\
src/stringutils.o\
src/fileio.o\
src/mm2.o\
src/mathematics.o\
src/sort.o\
src/vstack.o\
src/segmentstack.o\
src/mtc.o\
src/utils.o\
src/metseg.o
all: pmat
pmat: ${METSEGOBJ}
${CXX} $(CXXFLAGS) ${METSEGOBJ} -o pmat $(LDFLAGS)
clean:
rm -rf src/*.o pmat
rm -f test.mr.DMR
test1:
./pmat -t 32 -a A -b B -X 8 -Y 8 -m 5 -d 0.05 ../examples/test.dat > test.mr.DMR
test: test1
.PHONY: all clean