diff options
author | H. Peter Anvin <hpa@zytor.com> | 2013-11-24 11:13:10 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2013-11-24 11:13:10 -0800 |
commit | 45a22d9a6147c320b6754679de54a8290de3c5e3 (patch) | |
tree | ba4fe7f527010f2b6d76895a3bce0715bde224f5 /Makefile.in | |
parent | 015774dc3fee2aa1a96718e5097fb8045ef020a3 (diff) | |
download | nasm-45a22d9a6147c320b6754679de54a8290de3c5e3.tar.gz nasm-45a22d9a6147c320b6754679de54a8290de3c5e3.tar.bz2 nasm-45a22d9a6147c320b6754679de54a8290de3c5e3.zip |
iflag: Fix dependencies, factor out static components of iflag.h
Multi-dependencies don't work as expected, especially not across Make
versions, this is why we don't use them and read the instructions list
multiple times.
iflag.h has a lot of static content, so factor out the static content.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile.in b/Makefile.in index 2f46d3b..310c79a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -110,20 +110,21 @@ ndisasm$(X): $(NDISASM) $(XOBJS) # 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. +INSDEP = insns.dat insns.pl insns-iflags.pl -insns.pl: insns-iflags.pl - -iflag.c iflag.h: insns.dat insns.pl - $(PERL) $(srcdir)/insns.pl -t $(srcdir)/insns.dat -insnsb.c: insns.dat insns.pl +iflag.c: $(INSDEP) + $(PERL) $(srcdir)/insns.pl -fc $(srcdir)/insns.dat +iflaggen.h: $(INSDEP) + $(PERL) $(srcdir)/insns.pl -fh $(srcdir)/insns.dat +insnsb.c: $(INSDEP) $(PERL) $(srcdir)/insns.pl -b $(srcdir)/insns.dat -insnsa.c: insns.dat insns.pl +insnsa.c: $(INSDEP) $(PERL) $(srcdir)/insns.pl -a $(srcdir)/insns.dat -insnsd.c: insns.dat insns.pl +insnsd.c: $(INSDEP) $(PERL) $(srcdir)/insns.pl -d $(srcdir)/insns.dat -insnsi.h: insns.dat insns.pl +insnsi.h: $(INSDEP) $(PERL) $(srcdir)/insns.pl -i $(srcdir)/insns.dat -insnsn.c: insns.dat insns.pl +insnsn.c: $(INSDEP) $(PERL) $(srcdir)/insns.pl -n $(srcdir)/insns.dat # These files contains all the standard macros that are derived from @@ -193,7 +194,7 @@ PERLREQ = macros.c insnsb.c insnsa.c insnsd.c insnsi.h insnsn.c \ tokhash.c tokens.h pptok.h pptok.c pptok.ph \ directiv.c directiv.h \ version.h version.mac version.mak version.nsh \ - iflag.c iflag.h + iflag.c iflaggen.h perlreq: $(PERLREQ) # Generated manpages, also pregenerated for distribution |