summaryrefslogtreecommitdiff
path: root/mkdep.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-26 19:57:07 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-26 19:57:07 -0700
commitc38c1171882c18af52db0f351bcd3c89aa3d6f82 (patch)
tree60d7c9ae236d525cd13f1934830430408c9b8a31 /mkdep.pl
parent3f9bc94b6e9cefdf43adcbf45cbd3c93d30a5f45 (diff)
downloadnasm-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-xmkdep.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/mkdep.pl b/mkdep.pl
index 31eb88d..388315d 100755
--- a/mkdep.pl
+++ b/mkdep.pl
@@ -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;