18 lines
565 B
Makefile
18 lines
565 B
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
|
||
|
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
|