summary refs log tree commit diff
path: root/bin/hilex/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-28 20:06:44 -0500
committerJune McEnroe <june@causal.agency>2020-12-28 20:11:17 -0500
commitab54d9c9f162d07a62004bc0e9b958c345a03c07 (patch)
tree235c656a5673578e59985a21e78401e9ebda4304 /bin/hilex/Makefile
parentAdd TOUR.7 (diff)
downloadsrc-ab54d9c9f162d07a62004bc0e9b958c345a03c07.tar.gz
src-ab54d9c9f162d07a62004bc0e9b958c345a03c07.zip
Add initial version of hilex
hilex is meant to replace hi, based on lex rather than a mess of
overlapping regexps. I want to preserve hi's tagging abilities, but that
will require some amount of parsing/post-processing, which I'm not sure
how to approach yet.

Macro lexing for C still needs work, as I want to match strings and
comments inside macros.
Diffstat (limited to 'bin/hilex/Makefile')
-rw-r--r--bin/hilex/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/hilex/Makefile b/bin/hilex/Makefile
new file mode 100644
index 00000000..4a930757
--- /dev/null
+++ b/bin/hilex/Makefile
@@ -0,0 +1,14 @@
+CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
+
+OBJS += ansi.o
+OBJS += c.o
+OBJS += hilex.o
+OBJS += text.o
+
+hilex: ${OBJS}
+	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
+
+${OBJS}: hilex.h
+
+clean:
+	rm -f hilex ${OBJS}