-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (21 loc) · 718 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
# This is a Makefile for compiling the directed graph project.
# Defining the compiler
COMPILER = g++
# Defining the c standard
CSTD = --std=c++17
# Specifying the c files to compile with
C_FILES = vertex.cpp directed_graph.cpp
# Specifying the header files to compile with
H_FILES = linked_list.h vertex.h priority_queue.h directed_graph.h
# Defining a variable to hold various library flags
LIB_FLAGS = -g
# Specifying the c file that hold the main
MAIN = main.cpp
# Defining the call to make
all: digraph
# Defining part 1 of the call to make
digraph: $(H_FILES) $(MAIN)
$(COMPILER) $(CSTD) $(MAIN) $(C_FILES) -o digraph $(LIB_FLAGS)
# Implementing the clean Makefile functionality
clean:
rm -f digraph