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
commitc277129386f1acfe133da11f23a7d730ae48964d (patch)
tree29923c815344b8ac967f2856338c5649365c43ce /bin/Makefile
parentConsolidate hilex formatters into hilex.c (diff)
downloadsrc-c277129386f1acfe133da11f23a7d730ae48964d.tar.gz
src-c277129386f1acfe133da11f23a7d730ae48964d.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 $@