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