From e6fe4afa056e695cf181e6aa97ca2f8ba687af7e Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Fri, 4 Sep 2026 15:29:25 +0200 Subject: make debug --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1d95129..6608f43 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ -SYMSRCS=$(wildcard *.s) -OBJS=$(SYMSRCS:.s=.o) -PROGS=$(SYMSRCS:.s=) +SYMSRCS = $(wildcard *.s) +OBJS = $(SYMSRCS:.s=.o) +PROGS = $(SYMSRCS:.s=) +DEBUGFLAGS ?= -g .SUFFIXES: @@ -11,7 +12,7 @@ clean: rm -f $(OBJS) $(PROGS) %.o: %.s $(wildcard include/*.s) - as -g $< -o $@ + as $(DEBUGFLAGS) $< -o $@ %: %.o - ld $@.o -o $@ + ld $(DEBUGFLAGS) $@.o -o $@ -- cgit v1.2.3