I want to print my whole file compilation options on make in my console on build. For example on compiling test1.c test2.c test3.c using make
should print like
cc 开发者_如何学JAVA-g -O1 -Wall test1.c
cc -g -O1 -Wall test2.c
cc -g -O1 -Wall test3.c
make -n
will show the commands make would execute without running them. Is that what you mean?
Use make -B -n
to see all the build commands without actually building anything.
精彩评论