summaryrefslogtreecommitdiff
path: root/Mkfiles/Makefile.vc
diff options
context:
space:
mode:
authorDebbie Wiles <debs@dwiles.demon.co.uk>2002-05-20 02:26:35 +0000
committerDebbie Wiles <debs@dwiles.demon.co.uk>2002-05-20 02:26:35 +0000
commit157635509aac37fe406a1da294bb2f21808138b9 (patch)
tree97cefa6e34c4ec1836103d68c762eafa23deeba1 /Mkfiles/Makefile.vc
parent5a09ee3cf39dce27cc5a8e48ec50fa998617245b (diff)
downloadnasm-157635509aac37fe406a1da294bb2f21808138b9.tar.gz
nasm-157635509aac37fe406a1da294bb2f21808138b9.tar.bz2
nasm-157635509aac37fe406a1da294bb2f21808138b9.zip
Added make rules for files generated from perl scripts
Diffstat (limited to 'Mkfiles/Makefile.vc')
-rw-r--r--Mkfiles/Makefile.vc29
1 files changed, 29 insertions, 0 deletions
diff --git a/Mkfiles/Makefile.vc b/Mkfiles/Makefile.vc
index 1e8ec7d..bc20308 100644
--- a/Mkfiles/Makefile.vc
+++ b/Mkfiles/Makefile.vc
@@ -73,6 +73,35 @@ insnsa.$(OBJ): insnsa.c nasm.h version.h insnsi.h insns.h
insnsd.$(OBJ): insnsd.c nasm.h version.h insnsi.h insns.h
$(QCL) insnsd.c
+# These source files are automagically generated from a single
+# instruction-table file by a Perl script. They're distributed,
+# though, so it isn't necessary to have Perl just to recompile NASM
+# from the distribution.
+
+insnsa.c: insns.dat insns.pl
+ perl insns.pl -a insns.dat
+insnsd.c: insns.dat insns.pl
+ perl insns.pl -d insns.dat
+insnsi.h: insns.dat insns.pl
+ perl insns.pl -i insns.dat
+insnsn.c: insns.dat insns.pl
+ perl insns.pl -n insns.dat
+
+# These files contains all the standard macros that are derived from
+# the version number.
+version.h: version version.pl
+ perl version.pl h < version > version.h
+
+version.mac: version version.pl
+ perl version.pl mac < version > version.mac
+
+# This source file is generated from the standard macros file
+# `standard.mac' by another Perl script. Again, it's part of the
+# standard distribution.
+
+macros.c: macros.pl standard.mac version.mac
+ perl macros.pl standard.mac version.mac
+
clean :
del *.obj
del nasm$(SUFFIX)$(EXE)