summaryrefslogtreecommitdiff
path: root/a2/Makefile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-07-26 16:22:44 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2023-07-26 16:22:44 +0200
commit3cf89e5137ea333e81c2d62716054848ea8e4be5 (patch)
tree86873122e9b30f76cee2e7ee68cb41724c471b15 /a2/Makefile
parentd4c7424fedc83079d0c460d65f7daa8308ff969c (diff)
A2: Add measurement exercise..
Diffstat (limited to 'a2/Makefile')
-rw-r--r--a2/Makefile28
1 files changed, 13 insertions, 15 deletions
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