diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-06-28 22:28:11 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-06-28 22:28:11 +0000 |
| commit | 5f153abb7345aa4ddc574621d6842e07f80a559c (patch) | |
| tree | 3b657dd81d17778fcacb1b1a7cd5ca8aedfb6288 /Makefile | |
| parent | a27c10bdfbc7a8fda7441a28514f8f78540de21f (diff) | |
fixed license indentation and added debug symbols to makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 -Wall -Wextra -Werror -Wvla -pedantic +CFLAGS += $(shell pkg-config --cflags luajit) -I./include -Wno-format-truncation -std=c99 -D_XOPEN_SOURCE=700 # pretty print for compilation. To enable verbose (show commands), run with # `make V=1` @@ -38,7 +38,7 @@ default: pkgit pkgit: $(OBJS) $(E) " LINK " $@ - $(Q) ${CC} -o $@ $^ $(shell pkg-config --libs luajit) + $(Q) ${CC} -o $@ $^ $(shell pkg-config --libs luajit) $(LDFLAGS) $(OBJDIR): @mkdir -p $(OBJDIR) @@ -47,7 +47,8 @@ $(OBJDIR)/%.o: src/%.c | $(OBJDIR) $(E) " CC " $@ $(Q) ${CC} $(CFLAGS) -c -o $@ $< -debug: CFLAGS += -g -O0 +debug: CFLAGS += -g -O0 -Wall -Wextra -Werror -Wvla -pedantic -fsanitize=address +debug: LDFLAGS += -fsanitize=address debug: pkgit install: pkgit |
