aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $@