aboutsummaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ed/Makefile b/bin/ed/Makefile
index 77020043e89a..a33244286d25 100644
--- a/bin/ed/Makefile
+++ b/bin/ed/Makefile
@@ -1,14 +1,16 @@
PROG= ed
-CFLAGS+=-I${.CURDIR} -DVI_BANG -DGNU_REGEX -DHAVE_STRING_H=1
-SRCS= ed.c re.c buf.c cbc.c regex.c
+CFLAGS+=-I${.CURDIR} -DVI_BANG -DGNU_REGEX
+SRCS= ed.c re.c buf.c cbc.c
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
.if exists(/usr/lib/libcrypt.a)
CFLAGS+=-DDES
-DPADD+= ${LIBCRYPT}
LDADD+= -lcrypt
+DPADD+= ${LIBCRYPT}
.endif
+LDADD+= -lgnuregex
+DPADD+= /usr/lib/libgnuregex.a
.include <bsd.prog.mk>