summaryrefslogtreecommitdiff
path: root/usr.bin/spell/Makefile
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-01 22:01:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-01 22:01:12 +0000
commita994239d65289488e751e7ee61bcdb678ee26164 (patch)
treeebbcfba3a236a6a08d7fb989449a1b5f9684f814 /usr.bin/spell/Makefile
parentd0281a3ced86b9f7541ca7166fb7e3371be66794 (diff)
spell command from 4.4BSD, now freed by Caldera.
I have made some significant changes: o spell no longer uses hashed files. The algorithm for generating the hashed files breaks down for large files. Instead, I use the same approach as look(1) and do binary searches of mmap(2)ed files which has acceptable performance. A side effect of this is that spell can now search multiple word lists. o The spell binary has been renamed to "spellprog" so as to not conflict with the spell shell script. This is consistent with other operating systems. o The putsuf() and putword() functions have been renamed to trypref() and tryword() respectively for consistency with modern versions and for general sanity. o the spell front-end shell script has been completely rewritten o The code has been ANSIfied and re-style(9)d spell currently must be compiled with -fwriteable-strings to make the -b option work. This should be fixed.
Diffstat (limited to 'usr.bin/spell/Makefile')
-rw-r--r--usr.bin/spell/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr.bin/spell/Makefile b/usr.bin/spell/Makefile
new file mode 100644
index 00000000000..4e6723f8da9
--- /dev/null
+++ b/usr.bin/spell/Makefile
@@ -0,0 +1,23 @@
+# $OpenBSD: Makefile,v 1.1 2002/03/01 22:01:11 millert Exp $
+
+PROG= spellprog
+MAN= spell.1
+SRCS= spellprog.c look.c
+CFLAGS+=-fwritable-strings
+BINDIR= /usr/libexec
+
+afterinstall:
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/spell.ksh ${DESTDIR}/usr/bin/spell
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
+ ${.CURDIR}/stop ${DESTDIR}/usr/share/dict
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
+ ${.CURDIR}/american ${DESTDIR}/usr/share/dict
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
+ ${.CURDIR}/british ${DESTDIR}/usr/share/dict
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
+ ${.CURDIR}/special.4bsd ${DESTDIR}/usr/share/dict/special/4bsd
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
+ ${.CURDIR}/special.math ${DESTDIR}/usr/share/dict/special/math
+
+.include <bsd.prog.mk>