次の方法で共有


メイクファイルのコメント

コメントの前にはシャープ記号 (#) を付けます。 NMAKE は、シャープ記号から次の改行文字までのテキストを無視します。 次に例を示します。

# Comment on line by itself
OPTIONS = /MAP  # Comment on macro definition line

all.exe : one.obj two.obj  # Comment on dependency line
    link one.obj two.obj
# Comment in commands block
#   copy *.obj \objects  # Command turned into comment
    copy one.exe \release

.obj.exe:  # Comment on inference rule line
    link $<

my.exe : my.obj ; link my.obj  # Err: cannot comment this
 # Error: # must be the first character
.obj.exe: ; link $<  # Error: cannot comment this

リテラルのシャープ記号を指定するには、次のようにシャープ記号の前にカレット (^) を付けます。

DEF = ^#define  #Macro for a C preprocessing directive

参照

概念

メイクファイルの内容