7 CLEANFILES+= makedevs.c rtermcap rtermcap.tmp dumpnlist
8 CLEANFILES+= keymap.tmp keymap.h pccard_conf.h
10 .PATH: ${.CURDIR}/../disklabel ${.CURDIR}/../../usr.bin/cksum
12 SRCS= anonFTP.c cdrom.c command.c config.c devices.c kget.c \
13 disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \
14 ftp.c globals.c index.c install.c installUpgrade.c keymap.c \
15 label.c lndir.c main.c makedevs.c media.c menus.c misc.c mouse.c \
16 msg.c network.c nfs.c options.c package.c pccard.c \
17 system.c tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
18 keymap.h pccard_conf.h
20 CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR}
21 CFLAGS+= -I${.CURDIR}/../../sys
22 CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS
26 DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
27 LDADD= -ldialog -lncurses -lmytinfo -lutil -ldisk -lftpio
30 .if ${PCCARD} == "YES"
31 echo "#define PCCARD 1" > pccard_conf.h
33 echo "#undef PCCARD" > pccard_conf.h
36 makedevs.c: Makefile rtermcap keymap.h
38 echo '#include <sys/types.h>' > makedevs.tmp
40 file2c 'const char termcap_ansi[] = {' ',0};' \
43 file2c 'const char termcap_cons25[] = {' ',0};' \
45 ./rtermcap cons25-m | \
46 file2c 'const char termcap_cons25_m[] = {' ',0};' \
48 ./rtermcap cons25r | \
49 file2c 'const char termcap_cons25r[] = {' ',0};' \
51 ./rtermcap cons25r-m | \
52 file2c 'const char termcap_cons25r_m[] = {' ',0};' \
54 ./rtermcap cons25l1 | \
55 file2c 'const char termcap_cons25l1[] = {' ',0};' \
57 ./rtermcap cons25l1-m | \
58 file2c 'const char termcap_cons25l1_m[] = {' ',0};' \
61 file2c 'const char termcap_vt100[] = {' ',0};' \
63 .if ${MACHINE_ARCH} != "alpha"
64 file2c 'u_char boot0[] = {' '};' < /boot/boot0 >> makedevs.tmp
65 file2c 'u_char mbr[] = {' '};' < /boot/mbr >> makedevs.tmp
67 mv makedevs.tmp makedevs.c
69 rtermcap: ${.CURDIR}/rtermcap.c
70 ${CC} -o rtermcap ${.CURDIR}/rtermcap.c -ltermcap
73 KEYMAPS= be.iso br275.iso danish.iso finnish.iso fr.iso \
74 german.iso hr.iso hu.iso2.101keys it.iso icelandic.iso jp.106 \
75 norwegian.iso pl_PL.ISO_8859-2 pt.iso ru.koi8-r si.iso \
76 spanish.iso swedish.iso swissfrench.iso swissgerman.iso uk.iso \
82 for map in ${KEYMAPS} ; do \
83 kbdcontrol -L $$map | \
84 sed -e '/^static accentmap_t/,$$d' >> keymap.tmp ; \
86 echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp
87 for map in ${KEYMAPS} ; do \
88 echo -n ' { "'$$map'", ' >> keymap.tmp ; \
89 echo "&keymap_$$map }," | tr '[-.]' '_' >> keymap.tmp ; \
91 ( echo " { 0 }"; echo "};" ; echo "" ) >> keymap.tmp
92 mv keymap.tmp keymap.h
94 .include <bsd.prog.mk>