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
commit593137c52dc77cf113c1d9561d1b27b98a550bb5 (patch)
treef4f9d7c939bcd8fe527193c7d2fa3e8b3ed67ed8 /bin/hilex/Makefile
parentAdd TOUR.7 (diff)
downloadsrc-593137c52dc77cf113c1d9561d1b27b98a550bb5.tar.gz
src-593137c52dc77cf113c1d9561d1b27b98a550bb5.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}