From bdc3832fd12e888bef102559fb7294c8599b7de3 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 11 Nov 2024 18:06:14 +0100 Subject: [PATCH] Justfile for convenience --- lab1/Justfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lab1/Justfile diff --git a/lab1/Justfile b/lab1/Justfile new file mode 100644 index 0000000..1ab8b38 --- /dev/null +++ b/lab1/Justfile @@ -0,0 +1,18 @@ +all: a1 a2 a3 a4 + +a1: + g++ -o hello hello.cc + ./hello +a2: + g++ -std=c++11 -o separate_main separate_main.cc separate_fn.cc + +a3: + g++ -std=c++11 -c separate_main.cc + g++ -std=c++11 -c separate_fn.cc + g++ -std=c++11 -o separate_main separate_main.o separate_fn.o + +a4: + g++ -std=c++11 -o separate_main separate_main.cc + +a5: + g++ -c -O2 -Wall -Wextra -pedantic-errors -Wold-style-cast -std=c++11 hello.cc