开发者

How can i print the compilation options on making several C files using GCC and make

开发者 https://www.devze.com 2022-12-24 11:13 出处:网络
I want to print my whole file compilation options on make in my console on build. For example on compilingtest1.c test2.c test3.c using make

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消