-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 989 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (36 loc) · 989 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
35
36
37
38
39
40
41
42
43
44
45
46
47
CC = gcc
CFLAGS += -Wall
#CFLAGS += -g -O0
CFLAGS += -D_FILE_OFFSET_BITS=64 -m64 -O3 -fomit-frame-pointer -Wno-char-subscripts
LFLAGS = -lm -lrt -ldl
INPUT = dataset/input.100.txt
ALG = 10
LIBOBJ = \
lib/utils.o\
lib/file.o\
lib/bwt.o\
lib/suffix-array.o\
lib/lyndon-array.o\
external/gsaca_cl/gsaca.o\
external/sacak-lyndon.o\
external/malloc_count/malloc_count.o
##
M64 = 0
DEBUG = 0
PERMUTED = 0
STEP_TIME = 1
CHECK = 1
SAVE_SPACE = 1
COMPUTE_BWT = 1
##
DEFINES = -DDEBUG=$(DEBUG) -DM64=$(M64) -DPERMUTED=$(PERMUTED) -DSTEP_TIME=$(STEP_TIME) -DSAVE_SPACE=$(SAVE_SPACE) -DCOMPUTE_BWT=$(COMPUTE_BWT)
CFLAGS += $(DEFINES)
all: main
clean:
\rm -f *.o ../*.o ../external/*.o external/malloc_count/malloc_count.o lib/*o lyndon-array
main: main.c ${LIBOBJ}
$(CC) -o lyndon-array main.c ${LIBOBJ} $(CFLAGS) $(LFLAGS)
run:
./lyndon-array $(INPUT) -A $(ALG)
valgrind:
valgrind --tool=memcheck --leak-check=full --track-origins=yes ./lyndon-array $(INPUT) -A $(ALG)