aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-14 17:07:06 +0300
committerCem Keylan <cem@ckyln.com>2021-07-14 17:07:06 +0300
commitd7f8dce37ecea2fa24883b58a8bbd5f25fb69221 (patch)
tree34f8326573d65b5cf5704bf4c9fb4c3e36f106ec /Makefile
parent9270286d5a675a4924d94adaca4099441a3cae5a (diff)
downloadotools-d7f8dce37ecea2fa24883b58a8bbd5f25fb69221.tar.gz
ed: port to otools
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
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