summaryrefslogtreecommitdiff
path: root/macros.pl
diff options
context:
space:
mode:
Diffstat (limited to 'macros.pl')
-rw-r--r--macros.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/macros.pl b/macros.pl
index 733f7e1..0a12bb0 100644
--- a/macros.pl
+++ b/macros.pl
@@ -7,7 +7,8 @@
# redistributable under the licence given in the file "Licence"
# distributed in the NASM archive.
-open INPUT,"standard.mac" || die "unable to open standard.mac\n";
+$fname = "standard.mac" unless $fname = $ARGV[0];
+open INPUT,$fname || die "unable to open $fname\n";
open OUTPUT,">macros.c" || die "unable to open macros.c\n";
print OUTPUT "/* This file auto-generated from standard.mac by macros.pl" .