43 lines
1.6 KiB
Makefile
43 lines
1.6 KiB
Makefile
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
|
|
gcc array_handle_test.c -o array_handle_test
|
|
g++ array_handle_test.c -o array_handle_test_cpp
|
|
gcc array_test.c -o array_test
|
|
g++ array_test.c -o array_test_cpp
|
|
gcc array_handle_gen_test.c -o array_handle_gen_test
|
|
g++ array_handle_gen_test.c -o array_handle_gen_test_cpp
|
|
debug:
|
|
gcc -g macroname.c -o macroname
|
|
gcc -g count.c -o count
|
|
gcc -g innerf.c -o innerf
|
|
# g++ innerf.c -o innerf_cpp # does not work :-(
|
|
gcc -g construct_destruct.c -o construct_destruct
|
|
gcc -g raii_test.c -o raii_test
|
|
g++ -g raii_test.cpp -o raii_test_cpp
|
|
gcc -g handle_test.c -o handle_test
|
|
gcc -g array_handle_test.c -o array_handle_test
|
|
g++ -g array_handle_test.c -o array_handle_test_cpp
|
|
gcc -g array_test.c -o array_test
|
|
g++ -g array_test.c -o array_test_cpp
|
|
gcc -g array_handle_gen_test.c -o array_handle_gen_test
|
|
g++ -g array_handle_gen_test.c -o array_handle_gen_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
|
|
clang++ array_handle_gen_test.c -o array_handle_gen_test_clangpp
|
|
expand:
|
|
gcc -E handle_test.c -o handle_test_expanded.c
|