-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 800 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
31
32
33
34
35
36
37
38
39
# Author: Joshua Russell
# E-mail: jrusse22@nd.edu
#
# This is the Makefile for CC5
# # G++ is for the GCC compiler for C++
PP := g++
# CXXFLAGS are the compiler flages for when we compile C++ code in this course
FLAGS := -O0 -g -Wall -Wextra -Wconversion -Wshadow -pedantic -Werror
CXXFLAGS := -m64 -std=c++11 -Weffc++ $(FLAGS)
# Variables for Folders
INC := include
SRC := src
OBJ := obj
EXE := exe
# Command: make SorDLLTest
CSVObjs := $(OBJ)/CSV.o
CSV: $(CSVObjs)
$(PP) $(CXXFLAGS) -o $(EXE)/CSV $(CSVObjs)
$(EXE)/./CSV
$(OBJ)/CSV.o: $(SRC)/CSV.cpp $(INC)/CSV.h
$(PP) $(CXXFLAGS) -c $(SRC)/CSV.cpp -o $@
# make initialize
# Will be called by grader to initialize your objects and executables folders
initialize:
mkdir obj exe
# Make clean
clean :
rm -rf *.o $(OBJ)/* $(EXE)/*