--- kbd-1.12.old/src/Makefile.in +++ kbd-1.12/src/Makefile.in @@ -70,6 +70,12 @@ old: $(OLDPROGS) +$(PROGS): version.o + +$(OLDPROGS): version.o + +$(MISC): version.o + install: all install -d -m 0755 $(BINDIR) $(LOADKEYS_BINDIR) install -s -m 0755 $(setowner) $(PROGS) $(OLDPROGS) $(BINDIR) @@ -141,7 +147,7 @@ loadunimap.o psffontop.o utf8.o: utf8.h -chvt.o deallocvt.o dumpkeys.o getkeycodes.o getunimap.o kbd_mode.o: version.h +version.o chvt.o deallocvt.o dumpkeys.o getkeycodes.o getunimap.o kbd_mode.o: version.h kbdrate.o loadkeys.o loadunimap.o mapscrn.o psfxtable.o resizecons.o: version.h screendump.o setfont.o setkeycodes.o setleds.o setmetamode.o: version.h showconsolefont.o showkey.o totextmode.o: version.h --- kbd-1.12.old/src/outpsfheader.c +++ kbd-1.12/src/outpsfheader.c @@ -1,6 +1,8 @@ /* outpsfheader - auxiliary fn - not to be installed */ /* assumes a little-endian machine */ #include +#include + #include "psf.h" void --- kbd-1.12.old/src/version.h +++ kbd-1.12/src/version.h @@ -1,9 +1,10 @@ #include #include +#include #define VERSION "1.12" -char *progname; +extern char *progname; static inline void set_progname(char *name) { --- kbd-1.12.old/src/version.c +++ kbd-1.12/src/version.c @@ -0,0 +1,3 @@ +#include "version.h" + +char *progname;