From 8f852036ed93cabd1d1e80b4d1b3847296c10f9a Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Thu, 24 Apr 2025 20:05:32 +0200 Subject: [PATCH] added makefile for simple builds --- makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..2aa9b67 --- /dev/null +++ b/makefile @@ -0,0 +1,17 @@ +default: gcc +gcc: + gcc macroname.c -o macroname + gcc count.c -o count + gcc innerf.c -o innerf + # g++ innerf.c -o innerf_cpp # does not work :-( + gcc construct_destruct.c -o construct_destruct + gcc raii_test.c -o raii_test + g++ raii_test.cpp -o raii_test_cpp +clang: + clang macroname.c -o macroname + clang count.c -o count + # clang innerf.c -o innerf # does not work :-( + # clang++ innerf.c -o innerf_cpp # does not work :-( + clang construct_destruct.c -o construct_destruct + # clang raii_test.c -o raii_test # should not work + clang++ raii_test.cpp -o raii_test_cpp