-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
95 lines (69 loc) · 3.68 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
CC = /usr/bin/gcc
#GCCFLAGS = -ggdb -c -Wall
GCCFLAGS = -ggdb -c -Wall #-fsanitize=address -fno-omit-frame-pointer -g
ROOTDIR = .
SRCDIR = $(ROOTDIR)/src
OBJDIR = $(ROOTDIR)/obj
VPATH = src:obj:include
OBJ = $(OBJDIR)/assess.o $(OBJDIR)/frequency.o $(OBJDIR)/blockFrequency.o \
$(OBJDIR)/cusum.o $(OBJDIR)/runs.o $(OBJDIR)/longestRunOfOnes.o \
$(OBJDIR)/serial.o $(OBJDIR)/rank.o $(OBJDIR)/discreteFourierTransform.o \
$(OBJDIR)/nonOverlappingTemplateMatchings.o \
$(OBJDIR)/overlappingTemplateMatchings.o $(OBJDIR)/universal.o \
$(OBJDIR)/approximateEntropy.o $(OBJDIR)/randomExcursions.o \
$(OBJDIR)/randomExcursionsVariant.o $(OBJDIR)/linearComplexity.o \
$(OBJDIR)/dfft.o $(OBJDIR)/cephes.o $(OBJDIR)/matrix.o \
$(OBJDIR)/utilities.o $(OBJDIR)/generators.o $(OBJDIR)/genutils.o
assess: $(OBJ)
$(CC) -o $@ $(OBJ) -lm #-fsanitize=address
$(OBJDIR)/assess.o: $(SRCDIR)/assess.c defs.h decls.h utilities.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/assess.c
$(OBJDIR)/frequency.o: $(SRCDIR)/frequency.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/frequency.c
$(OBJDIR)/blockFrequency.o: $(SRCDIR)/blockFrequency.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/blockFrequency.c
$(OBJDIR)/cusum.o: $(SRCDIR)/cusum.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/cusum.c
$(OBJDIR)/runs.o: $(SRCDIR)/runs.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/runs.c
$(OBJDIR)/longestRunOfOnes.o: $(SRCDIR)/longestRunOfOnes.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/longestRunOfOnes.c
$(OBJDIR)/rank.o: $(SRCDIR)/rank.c defs.h externs.h matrix.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/rank.c
$(OBJDIR)/discreteFourierTransform.o: $(SRCDIR)/discreteFourierTransform.c \
defs.h externs.h utilities.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/discreteFourierTransform.c
$(OBJDIR)/nonOverlappingTemplateMatchings.o: \
$(SRCDIR)/nonOverlappingTemplateMatchings.c defs.h externs.h utilities.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/nonOverlappingTemplateMatchings.c
$(OBJDIR)/overlappingTemplateMatchings.o: \
$(SRCDIR)/overlappingTemplateMatchings.c defs.h externs.h utilities.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/overlappingTemplateMatchings.c
$(OBJDIR)/universal.o: $(SRCDIR)/universal.c defs.h externs.h utilities.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/universal.c
$(OBJDIR)/approximateEntropy.o: $(SRCDIR)/approximateEntropy.c defs.h externs.h utilities.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/approximateEntropy.c
$(OBJDIR)/randomExcursions.o: $(SRCDIR)/randomExcursions.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/randomExcursions.c
$(OBJDIR)/randomExcursionsVariant.o: $(SRCDIR)/randomExcursionsVariant.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/randomExcursionsVariant.c
$(OBJDIR)/serial.o: $(SRCDIR)/serial.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/serial.c
$(OBJDIR)/linearComplexity.o: $(SRCDIR)/linearComplexity.c defs.h externs.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/linearComplexity.c
$(OBJDIR)/dfft.o: $(SRCDIR)/dfft.c
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/dfft.c
$(OBJDIR)/matrix.o: $(SRCDIR)/matrix.c defs.h externs.h utilities.h matrix.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/matrix.c
$(OBJDIR)/genutils.o: $(SRCDIR)/genutils.c config.h genutils.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/genutils.c
$(OBJDIR)/cephes.o: $(SRCDIR)/cephes.c cephes.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/cephes.c
$(OBJDIR)/utilities.o: $(SRCDIR)/utilities.c defs.h externs.h utilities.h config.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/utilities.c
$(OBJDIR)/generators.o: $(SRCDIR)/generators.c defs.h externs.h utilities.h \
config.h generators.h
$(CC) -o $@ $(GCCFLAGS) $(SRCDIR)/generators.c
clean:
rm -f assess $(OBJDIR)/*.o
rebuild: clean assess