-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (16 loc) · 685 Bytes
/
makefile
File metadata and controls
22 lines (16 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#OBJS specifies which files to compile as part of the project
OBJS = matrix_multiplication.c
#CC specifies which compiler we're using
CC = gcc
#COMPILER_FLAGS specifies the additional compilation options we're using
# -w suppresses all warnings
COMPILER_FLAGS = -Wall -std=c99
#DEBUG_STATEMENTS specifies any debug statements we want to add
DEBUG_STATEMENTS = -DDEBUG
#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = -pthread
#OBJ_NAME specifies the name of our exectuable
OBJ_NAME = matrix_multiplication
#This is the target that compiles our executable
all : $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(DEBUG_STATEMENTS) $(LINKER_FLAGS) -o $(OBJ_NAME)