--- /dev/null
+SUBDIR= banner \
+ cat \
+ col \
+ colrm \
+ column \
+ comm \
+ csplit \
+ cut \
+ ed \
+ ee \
+ expand \
+ fmt \
+ fold \
+ grep \
+ head \
+ join \
+ lam \
+ look \
+ md5 \
+ nl \
+ paste \
+ pr \
+ rev \
+ rs \
+ sed \
+ sort \
+ split \
+ tail \
+ tr \
+ ul \
+ unexpand \
+ uniq \
+ unvis \
+ vis \
+ wc
+
+.include <bsd.subdir.mk>
--- /dev/null
+PROG= banner
+MAN= banner.6
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= cat
+
+BINDIR=/bin
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= col
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= colrm
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= column
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= comm
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= csplit
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= cut
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= ed
+SRCS= buf.c cbc.c glbl.c io.c \
+ main.c re.c sub.c undo.c
+
+BINDIR=/bin
+
+.include <bsd.prog.mk>
-# This is the make file for ee, the "easy editor".
-#
-# A file called 'make.local' will be generated which will contain information
-# specific to the local system, such as if it is a BSD or System V based
-# version of UNIX, whether or not it has catgets, or select.
-#
-# The "install" target ("make install") will copy the ee binary to
-# the /usr/local/bin directory on the local system. The man page (ee.1)
-# will be copied into the /usr/local/man/man1 directory.
-#
-# The "clean" target ("make clean") will remove the ee and new_curse.o
-# object files, and the ee binary.
-#
+# $FreeBSD$
-all : localmake buildee
+CFLAGS+= -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
+ -DHAS_SYS_WAIT
-buildee :
- make -f make.local
-
-localmake:
- @./create.make
-
-install :
- cp ee /usr/local/bin/ee
- cp ee.1 /usr/local/man/man1/ee.1
-
-clean :
- rm -f ee.o new_curse.o ee
+PROG= ee
+LINKS= ${BINDIR}/ee ${BINDIR}/ree ${BINDIR}/ee ${BINDIR}/edit
+MLINKS= ee.1 ree.1 ee.1 edit.1
+LDADD+=-lncursesw
+.include <bsd.prog.mk>
--- /dev/null
+PROG= expand
+MLINKS= expand.1 unexpand.1
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= fmt
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= fold
+
+.include <bsd.prog.mk>
--- /dev/null
+# $NetBSD: Makefile,v 1.4 2011/02/16 01:31:33 joerg Exp $
+# $FreeBSD$
+# $OpenBSD: Makefile,v 1.6 2003/06/25 15:00:04 millert Exp $
+
+PROG= grep
+
+SRCS= file.c grep.c queue.c util.c
+
+LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
+ ${BINDIR}/grep ${BINDIR}/fgrep \
+ ${BINDIR}/grep ${BINDIR}/rgrep \
+
+MLINKS+= grep.1 egrep.1 \
+ grep.1 fgrep.1 \
+ grep.1 rgrep.1
+
+CFLAGS+=-DWITHOUT_FASTMATCH
+
+LDADD+=-llzma -lbz2 -lz
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= head
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= join
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= lam
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= look
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= md5
+SRCS= md5.c commoncrypto.c
+
+LINKS= ${BINDIR}/md5 ${BINDIR}/rmd160 \
+ ${BINDIR}/md5 ${BINDIR}/sha1 \
+ ${BINDIR}/md5 ${BINDIR}/sha224 \
+ ${BINDIR}/md5 ${BINDIR}/sha256 \
+ ${BINDIR}/md5 ${BINDIR}/sha384 \
+ ${BINDIR}/md5 ${BINDIR}/sha512 \
+ ${BINDIR}/md5 ${BINDIR}/sha512t256 \
+ ${BINDIR}/md5 ${BINDIR}/skein256 \
+ ${BINDIR}/md5 ${BINDIR}/skein512 \
+ ${BINDIR}/md5 ${BINDIR}/skein1024
+
+MLINKS= md5.1 rmd160.1 \
+ md5.1 sha1.1 \
+ md5.1 sha224.1 \
+ md5.1 sha256.1 \
+ md5.1 sha384.1 \
+ md5.1 sha512.1 \
+ md5.1 sha512t256.1 \
+ md5.1 skein256.1 \
+ md5.1 skein512.1 \
+ md5.1 skein1024.1
+
+BINDIR=/sbin
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= nl
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= paste
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= pr
+SRCS= egetopt.c pr.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= rev
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= rs
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= sed
+SRCS= compile.c \
+main.c \
+misc.c \
+process.c
+
+.include <bsd.prog.mk>
--- /dev/null
+# $FreeBSD$
+
+PROG= sort
+
+SRCS= bwstring.c coll.c commoncrypto.c file.c \
+ mem.c radixsort.c sort.c vsort.c
+
+sort.1: sort.1.in
+ sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}
+
+CLEANFILES+= sort.1
+
+CFLAGS+= -DSORT_THREADS
+MAN_SUB+= -e 's|%%THREADS%%||g'
+
+# Current text_cmds version
+CFLAGS+=-DSORT_VERSION=\"106\"
+
+.include <bsd.prog.mk>
{
struct bwstring *k; /* key string */
struct key_hint hint[0]; /* key sort hint */
-} __packed;
+};
/*
* Set of keys container object.
--- /dev/null
+PROG= split
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= tail
+SRCS= forward.c misc.c read.c reverse.c tail.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= tr
+SRCS= cmap.c cset.c str.c tr.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= ul
+
+LDADD+=-lncursesw
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= unexpand
+MAN=
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= uniq
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= unvis
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= vis
+SRCS= foldit.c vis.c
+
+.include <bsd.prog.mk>
--- /dev/null
+PROG= wc
+
+.include <bsd.prog.mk>