# File       : Makefile
# Description: Compile targets
# Copyright 2023 Harvard University. All Rights Reserved.
CXX ?= g++
CXXFLAGS = -Wall -Wextra -Wpedantic -std=c++11 -fopenmp
CXXFLAGS += -O2 -msse -msse2 -msse3 -DNDEBUG # targets: SSE, SSE2 and SSE3

.PHONY: clean measurement

main: main.cpp
	$(CXX) $(CXXFLAGS) -o $@ $<

# You can submit a job on the cluster using this target.  The script will build
# the executable and then run a measurement
measurement:
	sbatch measure_speedup.sh

clean:
	rm -f main
