From 3cf89e5137ea333e81c2d62716054848ea8e4be5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 26 Jul 2023 16:22:44 +0200 Subject: A2: Add measurement exercise.. --- a2/Makefile | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'a2/Makefile') diff --git a/a2/Makefile b/a2/Makefile index 74f52b2..ae0cbeb 100644 --- a/a2/Makefile +++ b/a2/Makefile @@ -1,15 +1,13 @@ -all: measurement - -gcm.cache: Makefile - rm -Rf gcm.cache -# g++ -std=c++20 -fmodules-ts -x c++-system-header chrono -# g++ -std=c++20 -fmodules-ts -x c++-system-header vector -# g++ -std=c++20 -fmodules-ts -x c++-system-header iostream -# g++ -std=c++20 -fmodules-ts -x c++-system-header algorithm -# g++ -std=c++20 -fmodules-ts -x c++-system-header string -# g++ -std=c++20 -fmodules-ts -x c++-system-header thread - -measurement: measurement.cc Makefile -#gcm.cache -# g++ -Wall -Werror -Wextra -Wconversion -std=c++20 -fmodules-ts measurement.cc -o measurement - g++ -O2 -Wall -Werror -Wextra -Wconversion -std=c++20 measurement.cc -o measurement +all: measurement-O0 measurement-O1 measurement-O2 measurement-O3 + +measurement-O0: measurement.cc Makefile + g++ -O0 -Wall -Werror -Wextra -Wconversion -std=c++20 measurement.cc -o measurement-O0 + +measurement-O1: measurement.cc Makefile + g++ -O1 -Wall -Werror -Wextra -Wconversion -std=c++20 measurement.cc -o measurement-O1 + +measurement-O2: measurement.cc Makefile + g++ -O2 -Wall -Werror -Wextra -Wconversion -std=c++20 measurement.cc -o measurement-O2 + +measurement-O3: measurement.cc Makefile + g++ -O3 -Wall -Werror -Wextra -Wconversion -std=c++20 measurement.cc -o measurement-O3 -- cgit v1.2.3