diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-11-08 10:57:16 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-11-08 10:59:17 -0800 |
commit | d685bd2c4cf9b1fdeef1651575e3cfb7b5c23357 (patch) | |
tree | fa9dd3cab287738f4be27992fbadcc96be6cd37a /tools/mkdep.pl | |
parent | cae5d061849ba0c7150f0089433cceeff2e602be (diff) | |
download | nasm-d685bd2c4cf9b1fdeef1651575e3cfb7b5c23357.tar.gz |
msvc.mak: (hopefully) make external dependencies work with NMAKE
Hopefully this will make external dependencies work with NMAKE.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'tools/mkdep.pl')
-rwxr-xr-x | tools/mkdep.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mkdep.pl b/tools/mkdep.pl index d9373bb5..e84cc358 100755 --- a/tools/mkdep.pl +++ b/tools/mkdep.pl @@ -134,7 +134,7 @@ sub _insert_deps($$) { my $obj = '.o'; # Defaults my $sep = '/'; my $cont = "\\"; - my $include_command = 'include'; + my $include_command = undef; my $selfrule = 0; my $do_external = 0; my $maxline = 78; # Seems like a reasonable default @@ -194,7 +194,7 @@ sub _insert_deps($$) { } if ( $externalize ) { - if ( $is_external ) { + if ( $is_external && defined($include_command) ) { print $out "$include_command $external\n"; } return undef; |