summaryrefslogtreecommitdiff
path: root/tools/mkdep.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-11-08 10:57:16 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2017-11-08 10:59:17 -0800
commitd685bd2c4cf9b1fdeef1651575e3cfb7b5c23357 (patch)
treefa9dd3cab287738f4be27992fbadcc96be6cd37a /tools/mkdep.pl
parentcae5d061849ba0c7150f0089433cceeff2e602be (diff)
downloadnasm-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-xtools/mkdep.pl4
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;