Last Update: "2010/04/16 08:29:12 makoto"
if
例えば BSD make では条件付の設定は次のように書ける
.if "$(OPSYS)" == "NetBSD"
SHARED = -shared -nodefaultlibs -Xlinker -shared # NETBSD
STDLIB = -ll # NETBSD
.endif
これを gmake だと次のように書きます。
(一般形)
ifeq ($(strip $(foo)),)
text-if-empty
endif
|