ifeq ($(shell uname -s),Darwin)  # Mac.
CXX = g++-13
# To use actual GCC on Mac, please first install it.
else  # Linux
CXX = g++
endif

PREC = _DP_

CPPFLAGS = -O3 -march=native -ffast-math -funroll-loops \
		 -Wall -Wextra \
		 -D$(PREC)

.PHONY: clean

all: peak_performance.cpp
	$(CXX) $(CPPFLAGS) -o peak_performance peak_performance.cpp
	$(CXX) $(CPPFLAGS) -S peak_performance.cpp

clean:
	rm -f peak_performance peak_performance.s
