summaryrefslogtreecommitdiff
path: root/a1/Makefile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-07-24 15:00:59 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2023-07-24 16:28:33 +0200
commitff0507d6db02b9fc43e621d51b73419018bb38c8 (patch)
tree5d52c19711bce7b98c950ed7e446f653bb7e1dfb /a1/Makefile
parente40fd395aa354d0d8ea79dbae899fd8346adc8dc (diff)
A1: c++20 variation and report.
Diffstat (limited to 'a1/Makefile')
-rw-r--r--a1/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/a1/Makefile b/a1/Makefile
index af4aa77..8bab294 100644
--- a/a1/Makefile
+++ b/a1/Makefile
@@ -1,3 +1,10 @@
-all:
+all: hello hello-cpp20
+
+hello: hello.cc
g++ -std=c++20 -fmodules-ts -x c++-system-header iostream
g++ -std=c++20 -fmodules-ts hello.cc -o hello
+
+hello-cpp20: hello-cpp20.cc
+ g++ -std=c++20 -fmodules-ts -x c++-system-header iostream
+ g++ -std=c++20 -fmodules-ts -x c++-system-header string
+ g++ -std=c++20 -fmodules-ts hello-cpp20.cc -o hello-cpp20