summaryrefslogtreecommitdiff
path: root/a1/Makefile
diff options
context:
space:
mode:
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