diff options
author | H. Peter Anvin <hpa@zytor.com> | 2003-08-30 03:49:30 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2003-08-30 03:49:30 +0000 |
commit | cefdfbc070cdf5e25312634a11c851504f32d295 (patch) | |
tree | f3addf6af082a65ce33d54c5c409aeefe9b79b19 /mkdep.pl | |
parent | e68699287c525fe5e0e30dcb48376e6bfb472158 (diff) | |
download | nasm-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-x | mkdep.pl | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); + } } # |