From d7f8dce37ecea2fa24883b58a8bbd5f25fb69221 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 14 Jul 2021 17:07:06 +0300 Subject: ed: port to otools --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 77a9d33..7ec6c06 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ include config.mk BIN = \ diff \ doas \ + ed \ m4 \ mandoc \ md5 \ @@ -60,6 +61,7 @@ MAN = \ usr.bin/diff/diff.1 \ usr.bin/doas/doas.1 \ usr.bin/doas/doas.conf.5 \ + bin/ed/ed.1 usr.bin/mandoc/apropos.1 \ usr.bin/mandoc/makewhatis.8 \ usr.bin/mandoc/man.1 \ @@ -113,6 +115,22 @@ usr.bin/doas/env.o: usr.bin/doas/env.c doas: ${DOASOBJ} ${LIB} ${CC} ${LDFLAGS} -o $@ ${DOASOBJ} ${LIB} +# ------------------------------------------------------------------------------ +# ed +EDOBJ = \ + bin/ed/buf.o \ + bin/ed/glbl.o \ + bin/ed/io.o \ + bin/ed/main.o \ + bin/ed/re.o \ + bin/ed/sub.o \ + bin/ed/undo.o + +BINOBJ += ${EDOBJ} +bin/ed/sub.o: bin/ed/sub.c + ${CC} ${CFLAGS} -c -o $@ $< +ed: ${EDOBJ} ${LIB} + ${CC} ${LDFLAGS} -o $@ ${EDOBJ} ${LIB} # ------------------------------------------------------------------------------ # m4 -- cgit v1.2.3