added makefile for simple builds

This commit is contained in:
Richard Thier 2025-04-24 20:05:32 +02:00
parent 544196376c
commit 8f852036ed

17
makefile Normal file
View File

@ -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