diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2026-09-04 15:29:25 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2026-09-04 15:29:25 +0200 |
| commit | e6fe4afa056e695cf181e6aa97ca2f8ba687af7e (patch) | |
| tree | 4c38306429fb18e88298b73c995ba93135d7d433 /Makefile | |
| parent | efcf4501821e056dadf86a3dffaba662e131a137 (diff) | |
| download | uskel-e6fe4afa056e695cf181e6aa97ca2f8ba687af7e.tar.gz uskel-e6fe4afa056e695cf181e6aa97ca2f8ba687af7e.tar.bz2 | |
make debug
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 $@ |
