summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-12 22:06:56 -0500
committerJune McEnroe <june@causal.agency>2021-01-12 22:06:56 -0500
commitd5727a5964c859359c0b6e4fcf5b4e91ec8f4569 (patch)
tree8ae2001f305e343a1f73dd34cb2b9d545de571ec /bin/Makefile
parentConsolidate hilex formatters into hilex.c (diff)
downloadsrc-d5727a5964c859359c0b6e4fcf5b4e91ec8f4569.tar.gz
src-d5727a5964c859359c0b6e4fcf5b4e91ec8f4569.zip
Move hilex out of hilex directory
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 8e0cb324..9b2c06d4 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -26,6 +26,7 @@ BINS += c
 BINS += dtch
 BINS += glitch
 BINS += hi
+BINS += hilex
 BINS += hnel
 BINS += htagml
 BINS += modem
@@ -83,6 +84,17 @@ hi: hi.c
 	${CC} ${CFLAGS} ${LDFLAGS} hi.c ${LDLIBS.$@} -o $@
 	./hi -c
 
+OBJS.hilex += c11.o
+OBJS.hilex += hilex.o
+OBJS.hilex += make.o
+OBJS.hilex += mdoc.o
+OBJS.hilex += text.o
+
+hilex: ${OBJS.hilex}
+	${CC} ${LDFLAGS} ${OBJS.$@} ${LDLIBS.$@} -o $@
+
+${OBJS.hilex}: hilex.h
+
 open pbcopy pbpaste: pbd
 	ln -f pbd $@