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_conf.h pccard.c \
17 system.c tape.c tcpip.c termcap.c ufs.c user.c variable.c wizard.c \
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
32 pccard_conf.h: cleanconfig
33 .if ${PCCARD} == "YES"
34 echo "#define PCCARD 1" > pccard_conf.h
36 echo "#undef PCCARD" > pccard_conf.h
39 makedevs.c: Makefile rtermcap keymap.h
41 echo '#include <sys/types.h>' > makedevs.tmp
43 file2c 'const char termcap_ansi[] = {' ',0};' \
46 file2c 'const char termcap_cons25[] = {' ',0};' \
48 ./rtermcap cons25-m | \
49 file2c 'const char termcap_cons25_m[] = {' ',0};' \
51 ./rtermcap cons25r | \
52 file2c 'const char termcap_cons25r[] = {' ',0};' \
54 ./rtermcap cons25r-m | \
55 file2c 'const char termcap_cons25r_m[] = {' ',0};' \
57 ./rtermcap cons25l1 | \
58 file2c 'const char termcap_cons25l1[] = {' ',0};' \
60 ./rtermcap cons25l1-m | \
61 file2c 'const char termcap_cons25l1_m[] = {' ',0};' \
64 file2c 'const char termcap_vt100[] = {' ',0};' \
66 .if ${MACHINE_ARCH} != "alpha"
67 file2c 'u_char boot0[] = {' '};' < /boot/boot0 >> makedevs.tmp
68 file2c 'u_char mbr[] = {' '};' < /boot/mbr >> makedevs.tmp
70 mv makedevs.tmp makedevs.c
72 rtermcap: ${.CURDIR}/rtermcap.c
73 ${CC} -o rtermcap ${.CURDIR}/rtermcap.c -ltermcap
76 KEYMAPS= be.iso br275.iso danish.iso finnish.iso fr.iso \
77 german.iso hr.iso hu.iso2.101keys it.iso icelandic.iso jp.106 \
78 norwegian.iso pl_PL.ISO_8859-2 pt.iso ru.koi8-r si.iso \
79 spanish.iso swedish.iso swissfrench.iso swissgerman.iso uk.iso \
85 for map in ${KEYMAPS} ; do \
86 kbdcontrol -L $$map | \
87 sed -e '/^static accentmap_t/,$$d' >> keymap.tmp ; \
89 echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp
90 for map in ${KEYMAPS} ; do \
91 echo -n ' { "'$$map'", ' >> keymap.tmp ; \
92 echo "&keymap_$$map }," | tr '[-.]' '_' >> keymap.tmp ; \
94 ( echo " { 0 }"; echo "};" ; echo "" ) >> keymap.tmp
95 mv keymap.tmp keymap.h
97 .include <bsd.prog.mk>