aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2026-09-04 15:29:25 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2026-09-04 15:29:25 +0200
commite6fe4afa056e695cf181e6aa97ca2f8ba687af7e (patch)
tree4c38306429fb18e88298b73c995ba93135d7d433
parentefcf4501821e056dadf86a3dffaba662e131a137 (diff)
downloaduskel-e6fe4afa056e695cf181e6aa97ca2f8ba687af7e.tar.gz
uskel-e6fe4afa056e695cf181e6aa97ca2f8ba687af7e.tar.bz2
make debug
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
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 $@