aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordacctal <donotcontactmevia@email.invalid>2026-07-18 07:16:31 +0000
committerdacctal <donotcontactmevia@email.invalid>2026-07-18 07:16:31 +0000
commit71b2cbcf9d1eb730fec8aa64436d7ea59d7cec08 (patch)
treecfd990e272d854063e6f4e98b686f3c29d7d13b4 /Makefile
parent7b5719b26119545e8877f2144c1476ec97d00abc (diff)
fix lua vm bugs, remove git repo when one already exists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c69c547..adacc56 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ PREFIX ?= /usr/local
OBJDIR = obj
SRCS = $(wildcard src/*.c)
OBJS = $(SRCS:src/%.c=$(OBJDIR)/%.o)
-CFLAGS += $(shell pkg-config --cflags luajit) -I./include -Wno-format-truncation -std=c99 -D_XOPEN_SOURCE=700
+CFLAGS += $(shell pkg-config --cflags luajit) -I./include -Wno-format-truncation -std=c99
# pretty print for compilation. To enable verbose (show commands), run with
# `make V=1`
@@ -47,6 +47,9 @@ $(OBJDIR)/%.o: src/%.c | $(OBJDIR)
$(E) " CC " $@
$(Q) ${CC} $(CFLAGS) -c -o $@ $<
+gdb: CFLAGS += -g -O0 -Wall -Wextra -Werror -Wvla -pedantic
+gdb: pkgit
+
debug: CFLAGS += -g -O0 -Wall -Wextra -Werror -Wvla -pedantic -fsanitize=address
debug: LDFLAGS += -fsanitize=address
debug: pkgit