#
# 
#

# Variables
GPP     = g++
CFLAGS  = -g -std=c++0x
RM      = rm -f
BINNAME = HashingDict

# Shell gives make a full user environment
# Adding this to PATH will find the newer g++ compiler on the EECS servers.
SHELL := /bin/bash
PATH := /opt/rh/devtoolset-3/root/usr/bin/:$(PATH)


# Default is what happenes when you call make with no options
#  In this case, it requires that 'all' is completed
default: all

# All is the normal default for most Makefiles
#  In this case, it requires that build is completed
all: build

# build depends upon *.cpp, then runs the command:
#  g++ -g -std=c++0x -o bigFiveList
build: main.cpp
	$(GPP) $(CFLAGS) -o $(BINNAME) main.cpp

run: build
	./$(BINNAME)

test: build
	./$(BINNAME) --test

bigtest: build
	./$(BINNAME) --test --withFuzzing

# If you call "make clean" it will remove the built program
#  rm -f HelloWorld
clean veryclean:
	$(RM) $(BINNAME)
