Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マクロがコンパイラで定義されている場合、次のようになります。
cflag += -D name
この定義を無効にするにはどうすればよいですか?
からフラグを削除する場合は、次のcflagいずれかを実行できます。
cflag
$(subst)次のように、からフラグを削除するために使用しcflagます。
$(subst)
cflag := $(subst -D name,,$(cflag)
が参照されている場所で置換を行うこともできることに注意してくださいcflag。