c_mem_safety/makefile

19 lines
599 B
Makefile
Raw Normal View History

2025-04-24 20:05:32 +02:00
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
gcc handle_test.c -o handle_test
2025-04-24 20:05:32 +02:00
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