-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 844 Bytes
/
Makefile
File metadata and controls
32 lines (21 loc) · 844 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
# vim: set tabstop=4 autoindent:
#OBJS specifies which files to compile as part of the TEST
TEST_OBJS = test.cc rcpsp.cc
#OBJ_NAME specifes the name of our TEST executable
TEST_OBJ_NAME = test.out
#OBJS specifies which files to compile as part of the project
OBJS = main.cc rcpsp.cc
#OBJ_NAME specifes the name of our executable
OBJ_NAME = main.out
#CC specifies which compiler we're using
CC=g++
#COMPILER_FLAGS specifies the additional compilation options we're using
# -w suppresses all warnings
COMPILER_FLAGS = -w -std=c++11
#LINKER_FLAGS specifes the libraries we're linking against
LINKER_FLAGS =
#This is the target compiles our executable
all : $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -m64 -o $(OBJ_NAME)
test : $(TEST_OBJS)
$(CC) $(TEST_OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -m64 -o $(TEST_OBJ_NAME)