From de56e79dcb93c501add0c31ac9679eeb2ef80642 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 31 Dec 2022 19:27:00 +0200 Subject: Add C++ (17) --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d5399b9..732fdf6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ BINARIES := \ mendeleev-c \ mendeleev-c-cpp \ + mendeleev-cpp \ mendeleev-f \ mendeleev-hs \ mendeleev-py \ @@ -76,10 +77,20 @@ prof-%-c.txt: prof-%-c.gmon # C++ CXX = g++ -CXXFLAGS = -std=c++98 -Wall -Wextra -O2 +CXXFLAGS = -std=c++17 -Wall -Wextra -O2 %-c-cpp: %.c $(CXX) $(CXXFLAGS) $< -o $@ +%-cpp: %.cpp + $(CXX) $(CXXFLAGS) $< -o $@ + +CXXFLAGS_PROF = -O0 -g -pg +prof-%-cpp: %.cpp + $(CXX) $(CXXFLAGS_PROF) $< -o $@ + +prof-mendeleev-cpp.txt: prof-mendeleev-cpp.gmon + gprof --brief prof-mendeleev-cpp $< > $@ + # Fortran FC = gfortran -- cgit v1.2.3