-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 841 Bytes
/
Makefile
File metadata and controls
41 lines (29 loc) · 841 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
#To change the value of a variable: make VARIABLE="..."
#Compilation flags
CFLAGS = -Wall -Werror -std=gnu11 -O2
ASANFLAGS = -fsanitize=address -lm
#Source files
SOURCE = ${SRC} ${MOD} ${MATRIX}
#source code
SRC = main.c
#ModularArithmetic.h
MOD = \
Modular_Arithmetic/EquationModulo.c \
Modular_Arithmetic/MatrixModulo.c \
Modular_Arithmetic/OperationModulo.c \
Modular_Arithmetic/TestModulo.c \
Modular_Arithmetic/UtilityModulo.c \
#Matrix.h
MATRIX = \
Modular_Arithmetic/Utility/Matrix/ManageMatrix.c \
Modular_Arithmetic/Utility/Matrix/MatrixOperation.c \
Modular_Arithmetic/Utility/Matrix/MatrixType.c \
Modular_Arithmetic/Utility/Matrix/UtilityMatrix.c \
#Output
OUTPUT = output
compile:
gcc ${CFLAGS} ${SOURCE} -o ${OUTPUT} -lm
asan:
gcc ${ASANFLAGS} ${SOURCE} -o ${OUTPUT} -lm
clean:
rm -ri ${OUTPUT}