diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-26 19:57:07 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-26 19:57:07 -0700 |
commit | c38c1171882c18af52db0f351bcd3c89aa3d6f82 (patch) | |
tree | 60d7c9ae236d525cd13f1934830430408c9b8a31 /mkdep.pl | |
parent | 3f9bc94b6e9cefdf43adcbf45cbd3c93d30a5f45 (diff) | |
download | nasm-c38c1171882c18af52db0f351bcd3c89aa3d6f82.tar.gz nasm-c38c1171882c18af52db0f351bcd3c89aa3d6f82.tar.bz2 nasm-c38c1171882c18af52db0f351bcd3c89aa3d6f82.zip |
Add Makefile for OpenWatcom (DOS, OS/2 or Win32 output)
Add a Makefile for OpenWatcom using WMAKE. This is a horrible version
of Make, but since it's bundled with OpenWatcom it is probably better
to stick to it. It has the nice property that it can produce DOS,
Win32 or OS/2 binaries.
This Makefile currently assumes that it is hosted on a system where
pathname separators are backslashes. For cross-compiling using
OpenWatcom on a Linux system it is probably better to write a separate
Makefile using GNU make to invoke Watcom.
Diffstat (limited to 'mkdep.pl')
-rwxr-xr-x | mkdep.pl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -93,6 +93,7 @@ sub insert_deps($) { my($line,$parm,$val); my($obj) = '.o'; # Defaults my($sep) = '/'; + my($cont) = "\\"; my($maxline) = 78; # Seems like a reasonable default while ( defined($line = <IN>) ) { @@ -104,6 +105,8 @@ sub insert_deps($) { $sep = $val; } elsif ( $parm eq 'line-width' ) { $maxline = $val+0; + } elsif ( $parm eq 'continuation' ) { + $cont = $val; } } elsif ( $line eq $barrier ) { last; # Stop reading input at barrier line @@ -127,7 +130,7 @@ sub insert_deps($) { $str = convert_file($dep,$sep); $sl = length($str)+1; if ( $len+$sl > $maxline-2 ) { - print OUT " \\\n ", $str; + print OUT ' ', $cont, "\n ", $str; $len = $sl; } else { print OUT ' ', $str; |