* src/local.mk: Include extern decl for 'Version'.
* src/crctab.c (crctab): Add an extern decl.
* src/cksum.c: Generate an extern decl.
printf ("#include <config.h>\n");
printf ("#include <stdint.h>\n");
- printf ("\nuint_fast32_t const crctab[8][256] = {\n");
+ printf ("\nextern uint_fast32_t const crctab[8][256];\n");
+ printf ("uint_fast32_t const crctab[8][256] = {\n");
for (int y = 0; y < 8; y++)
{
printf ("{\n 0x%08x", crctab[y][0]);
#include <config.h>
#include <stdint.h>
+extern uint_fast32_t const crctab[8][256];
uint_fast32_t const crctab[8][256] = {
{
0x00000000,
$(AM_V_GEN)rm -f $@
$(AM_V_at)${MKDIR_P} src
$(AM_V_at)printf '#include <config.h>\n' > $@t
+ $(AM_V_at)printf '#include "version.h"\n' >> $@t
$(AM_V_at)printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t
$(AM_V_at)chmod a-w $@t
$(AM_V_at)mv $@t $@