1 # $FreeBSD: src/release/sysinstall/Makefile,v 1.92.2.22 2003/03/07 08:17:59 ru Exp $
2 # $DragonFly: src/release/sysinstall/Attic/Makefile,v 1.3 2004/03/22 20:58:11 dillon Exp $
10 SRCS= anonFTP.c cdrom.c command.c config.c devices.c dhcp.c kget.c \
11 disks.c dispatch.c dist.c dmenu.c doc.c dos.c floppy.c \
12 ftp.c globals.c http.c index.c install.c installUpgrade.c keymap.c \
13 label.c main.c makedevs.c media.c menus.c misc.c modules.c \
14 mouse.c msg.c network.c nfs.c options.c package.c \
15 system.c tape.c tcpip.c termcap.c ufs.c usb.c user.c \
16 variable.c wizard.c keymap.h
18 .if ${MACHINE_ARCH} == "i386"
22 CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I.
24 .if ${MACHINE} == "pc98"
28 DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
29 LDADD= -ldialog -lncurses -lutil -ldisk -lftpio
31 CLEANFILES= makedevs.c rtermcap.nx
32 CLEANFILES+= keymap.tmp keymap.h
34 makedevs.c: Makefile rtermcap.nx
35 echo '#include <sys/types.h>' > makedevs.c
36 ./rtermcap.nx ansi | \
37 file2c 'const char termcap_ansi[] = {' ',0};' \
39 ./rtermcap.nx cons25w | \
40 file2c 'const char termcap_cons25w[] = {' ',0};' \
42 ./rtermcap.nx cons25 | \
43 file2c 'const char termcap_cons25[] = {' ',0};' \
45 ./rtermcap.nx cons25-m | \
46 file2c 'const char termcap_cons25_m[] = {' ',0};' \
48 ./rtermcap.nx cons25r | \
49 file2c 'const char termcap_cons25r[] = {' ',0};' \
51 ./rtermcap.nx cons25r-m | \
52 file2c 'const char termcap_cons25r_m[] = {' ',0};' \
54 ./rtermcap.nx cons25l1 | \
55 file2c 'const char termcap_cons25l1[] = {' ',0};' \
57 ./rtermcap.nx cons25l1-m | \
58 file2c 'const char termcap_cons25l1_m[] = {' ',0};' \
60 ./rtermcap.nx vt100 | \
61 file2c 'const char termcap_vt100[] = {' ',0};' \
63 ./rtermcap.nx xterm | \
64 file2c 'const char termcap_xterm[] = {' ',0};' \
67 build-tools: rtermcap.nx
69 .if ${MACHINE} == "pc98"
70 KEYMAPS= jp.pc98 jp.pc98.iso
72 KEYMAPS= be.iso bg.bds.ctrlcaps bg.phonetic.ctrlcaps br275.cp850 br275.iso \
73 cs.latin2.qwertz danish.cp865 danish.iso estonian.iso \
74 estonian.iso15 estonian.cp850 finnish.cp850 finnish.iso fr.iso \
75 fr.iso.acc german.cp850 german.iso hr.iso hu.iso2.101keys \
76 hu.iso2.102keys it.iso icelandic.iso icelandic.iso.acc jp.106 \
77 lat-amer norwegian.iso pt.iso pt.iso.acc ru.koi8-r si.iso spanish.iso \
78 spanish.iso.acc swedish.cp850 swedish.iso swissfrench.cp850 \
79 swissfrench.iso swissgerman.cp850 swissgerman.iso swissgerman.iso.acc \
80 ua.koi8-u ua.koi8-u.shift.alt uk.cp850 uk.iso us.dvorak us.emacs \
81 us.iso us.pc-ctrl us.unix
86 for map in ${KEYMAPS} ; do \
87 KEYMAP_PATH=${.CURDIR}/../../share/syscons/keymaps \
88 kbdcontrol -L $$map | \
89 sed -e '/^static accentmap_t/,$$d' >> keymap.tmp ; \
91 echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp
92 for map in ${KEYMAPS} ; do \
93 echo -n ' { "'$$map'", ' >> keymap.tmp ; \
94 echo "&keymap_$$map }," | tr '[-.]' '_' >> keymap.tmp ; \
96 ( echo " { 0 }"; echo "};" ; echo "" ) >> keymap.tmp
97 mv keymap.tmp keymap.h
100 @if [ ! -d ${BINDIR}/ ]; then \
101 mkdir -p ${BINDIR}; \
104 .include <bsd.prog.mk>