diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-05-13 14:29:47 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-13 14:29:47 -0700 |
commit | 2c94c44f35f3406f64765fe1f78448788580fcaf (patch) | |
tree | 714f1ce146079c125d6a1aea2f4979170ecff12a /insns.pl | |
parent | 0a4d23219ec3237e5ca54e9ff06a44cfdcd9581a (diff) | |
download | nasm-2c94c44f35f3406f64765fe1f78448788580fcaf.tar.gz |
Make insnsb.c an actual compilation unit
"make alldeps" doesn't really like it when included files end in *.c.
Instead of renaming insnsb.c to insnsb.h, make it an actual
compilation unit, since there really isn't any reason for it not to
be.
Diffstat (limited to 'insns.pl')
-rw-r--r-- | insns.pl | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -109,7 +109,7 @@ if ( !defined($output) || $output eq 'b') { print B "#include \"nasm.h\"\n"; print B "#include \"insns.h\"\n\n"; - print B "static const uint8_t nasm_bytecodes[$bytecode_next] = {\n"; + print B "const uint8_t nasm_bytecodes[$bytecode_next] = {\n"; $p = 0; foreach $bl (@bytecode_array) { @@ -133,7 +133,8 @@ if ( !defined($output) || $output eq 'a' ) { print A "/* This file auto-generated from insns.dat by insns.pl" . " - don't edit it */\n\n"; - print A "#include \"insnsb.c\"\n\n"; + print A "#include \"nasm.h\"\n"; + print A "#include \"insns.h\"\n\n"; foreach $i (@opcodes, @opcodes_cc) { print A "static const struct itemplate instrux_${i}[] = {\n"; @@ -160,7 +161,8 @@ if ( !defined($output) || $output eq 'd' ) { print D "/* This file auto-generated from insns.dat by insns.pl" . " - don't edit it */\n\n"; - print D "#include \"insnsb.c\"\n\n"; + print D "#include \"nasm.h\"\n"; + print D "#include \"insns.h\"\n\n"; print D "static const struct itemplate instrux[] = {\n"; $n = 0; |