3 WARNINGS = -Wall -Wextra -Wmissing-noreturn -Wdisabled-optimization \
4 -Wcast-align -Wshadow -Wmissing-format-attribute -Wmissing-prototypes \
5 -Wstrict-prototypes -Wmissing-declarations
11 AM_CPPFLAGS = -DDATADIR=\"$(datadir)\" -DLOCALEDIR=\"$(localedir)\" $(WARNINGS) \
14 OLDPROGS = mapscrn loadunimap
16 dumpkeys loadkeys showkey setfont showconsolefont \
17 setleds setmetamode kbd_mode psfxtable fgconsole
20 PROGS += kbdrate chvt deallocvt openvt
24 PROGS += getkeycodes setkeycodes
33 setlogcons setvesablank getunimap clrunimap outpsfheader setpalette
35 PROGS += screendump spawn_console spawn_login
39 dist_bin_SCRIPTS = unicode_start unicode_stop
40 bin_PROGRAMS = $(OLDPROGS) $(PROGS)
43 analyze.c analyze.l wctomb.c totextmode.c \
44 README.cad README.init README.openvt \
47 ALL_S = modifiers.h nls.h paths.h version.h kbd.h
48 FIND_S = findfile.c findfile.h
49 GETFD_S = getfd.c getfd.h
50 KDMA_S = kdmapop.c kdmapop.h
51 KSYMS_S = ksyms.c ksyms.h cp1250.syms.h ethiopic.syms.h koi8.syms.h sami.syms.h thai.syms.h
52 PSF_S = psf.h psffontop.c psffontop.h
53 UNIM_S = loadunimap.c loadunimap.h
54 UTF8_S = utf8.c utf8.h
55 XMAL_S = xmalloc.c xmalloc.h
58 KLIBC_S = klibc_compat.c klibc_compat.h
61 chvt_SOURCES = $(ALL_S) chvt.c $(GETFD_S)
62 clrunimap_SOURCES = $(ALL_S) clrunimap.c $(GETFD_S) $(KDMA_S)
63 deallocvt_SOURCES = $(ALL_S) deallocvt.c $(GETFD_S)
64 dumpkeys_SOURCES = $(ALL_S) dumpkeys.c $(GETFD_S) $(KSYMS_S) $(XMAL_S)
65 fgconsole_SOURCES = $(ALL_S) fgconsole.c $(GETFD_S)
66 getkeycodes_SOURCES = $(ALL_S) getkeycodes.c $(GETFD_S)
67 getunimap_SOURCES = $(ALL_S) getunimap.c $(GETFD_S) $(KDMA_S)
68 kbd_mode_SOURCES = $(ALL_S) kbd_mode.c $(GETFD_S)
69 loadkeys_SOURCES = $(ALL_S) loadkeys.y $(GETFD_S) $(KSYMS_S) $(XMAL_S) $(FIND_S) $(KLIBC_S)
70 loadunimap_SOURCES = $(ALL_S) loadunimap.c $(FIND_S) $(PSF_S) $(UTF8_S) $(XMAL_S) $(GETFD_S) $(KDMA_S) $(KLIBC_S)
71 mapscrn_SOURCES = $(ALL_S) mapscrn.c $(FIND_S) $(UTF8_S) $(XMAL_S) $(GETFD_S) $(KDMA_S)
72 openvt_SOURCES = $(ALL_S) openvt.c openvt.h $(GETFD_S)
73 psfxtable_SOURCES = $(ALL_S) psfxtable.c $(PSF_S) $(XMAL_S) $(UTF8_S) $(GETFD_S) $(KLIBC_S)
74 resizecons_SOURCES = $(ALL_S) resizecons.c $(GETFD_S) $(FIND_S) $(XMAL_S)
75 screendump_SOURCES = $(ALL_S) screendump.c $(XMAL_S)
76 setfont_SOURCES = $(ALL_S) setfont.c $(FIND_S) $(XMAL_S) $(GETFD_S) mapscrn.c $(KDMA_S) $(PSF_S) $(UTF8_S) kdfontop.c kdfontop.h $(UNIM_S) $(KLIBC_S)
77 setkeycodes_SOURCES = $(ALL_S) setkeycodes.c $(GETFD_S)
78 setlogcons_SOURCES = $(ALL_S) setlogcons.c $(GETFD_S)
79 setpalette_SOURCES = $(ALL_S) setpalette.c $(GETFD_S)
80 setvesablank_SOURCES = $(ALL_S) setvesablank.c $(GETFD_S)
81 showconsolefont_SOURCES = $(ALL_S) showconsolefont.c $(GETFD_S) $(XMAL_S) $(KDMA_S) kdfontop.c kdfontop.h
82 showkey_SOURCES = $(ALL_S) showkey.c $(GETFD_S) $(KLIBC_S)
84 mapscrn_CFLAGS = -DMAIN
85 loadunimap_CFLAGS = -DMAIN
88 for i in psfaddtable psfgettable psfstriptable; do \
89 rm -f $(DESTDIR)$(bindir)/$$i; \
90 ln -s psfxtable $(DESTDIR)$(bindir)/$$i || exit $$?; \