commit ef6d25af182c1edb102118a569c6e3b514979b98
parent c531ed8d9dc451241bf1569e8555bfaca2b70e11
Author: Kyle Milz <krwmilz@gmail.com>
Date: Wed, 8 Sep 2021 18:52:12 +0000
add target to create default.h
default.h will contain a C byte array of the default document when
the program is opened.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -19,12 +19,15 @@ PKGS_CFLAGS != pkg-config --cflags ${PKGS}
PKGS_LDFLAGS != pkg-config --libs ${PKGS}
CPPFLAGS += ${PKGS_CFLAGS}
-CFLAGS += -Wall -g # -Wunused-parameter
+CFLAGS += -Wall -g # -Wunused-parameter -Wshadow
LDFLAGS += -Xlinker --allow-multiple-definition -lm
${PROG}: ${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${PKGS_LDFLAGS}
+default.h: default.dvi
+ xxd -i default.dvi $@
+
depend: ${SRCS}
cpp ${CPPFLAGS} -M ${SRCS} > depend