pass flags to make implicit rules

The built-in implicit rules use several variables in their recipes so that, by changing the values of the variables, you can change the way the implicit rule works. For example, the variable CFLAGS controls the flags given to the C compiler by the implicit rule for C compilation.

 

example:

following CFLAGS will be used when implicit rule for CC is used.

CFLAGS = -O2  -Wall

refer:

https://www.gnu.org/software/make/manual/html_node/Implicit-Rules.html

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章