summaryrefslogtreecommitdiff
path: root/mkdep.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-08-30 03:49:30 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-08-30 03:49:30 +0000
commitcefdfbc070cdf5e25312634a11c851504f32d295 (patch)
treef3addf6af082a65ce33d54c5c409aeefe9b79b19 /mkdep.pl
parente68699287c525fe5e0e30dcb48376e6bfb472158 (diff)
downloadnasm-cefdfbc070cdf5e25312634a11c851504f32d295.tar.gz
nasm-cefdfbc070cdf5e25312634a11c851504f32d295.tar.bz2
nasm-cefdfbc070cdf5e25312634a11c851504f32d295.zip
Support building 16-bit DOS binaries using OpenWatcom
Diffstat (limited to 'mkdep.pl')
-rwxr-xr-xmkdep.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/mkdep.pl b/mkdep.pl
index 1131971..8eb1ce7 100755
--- a/mkdep.pl
+++ b/mkdep.pl
@@ -67,7 +67,14 @@ sub convert_file($$) {
unshift(@fspec, basename($file));
}
- return join($sep, @fspec);
+ if ( $sep eq '' ) {
+ # This means kill path completely. Used with Makes who do
+ # path searches, but doesn't handle output files in subdirectories,
+ # like OpenWatcom WMAKE.
+ return $fspec[scalar(@fspec)-1];
+ } else {
+ return join($sep, @fspec);
+ }
}
#