summaryrefslogtreecommitdiff
path: root/src/sys/os/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-13 21:53:53 -0400
committerIan Moffett <ian@osmora.org>2025-09-13 21:53:53 -0400
commit3770715193be37c9d4bff160aa4ce6fe12c55b93 (patch)
treef2934f2a067c4c0c92376e55f09b2072b6b055cf /src/sys/os/Makefile
parentd66a88189a48f526ee70db8bf3e375b5b5990513 (diff)
build: TARGET -> TARGET_LIB
Use TARGET_LIB to not get clobbered by the global TARGET variable Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os/Makefile')
-rw-r--r--src/sys/os/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/os/Makefile b/src/sys/os/Makefile
index dda389b..47211b3 100644
--- a/src/sys/os/Makefile
+++ b/src/sys/os/Makefile
@@ -3,8 +3,8 @@ include ../conf/sys.mk
.SILENT:
override PROMPT := printf "%s\t\t%s\n"
-TARGET = ../target/libkern.a
-CFLAGS = -I../include/ -I../include/lib/ -I../target/header/ $(MI_CFLAGS)
+TARGET_LIB = ../target/libkern.a
+CFLAGS = -I../include/ -I../include/lib/ -I../target/header/ $(MI_CFLAGS) -O0
CFILES = $(shell find . -name "*.c")
DEPS = $(CFILES:.c=.d)
@@ -13,7 +13,7 @@ OBJECTS = $(CFILES:%.c=%.o)
.PHONY: all
all: $(OBJECTS)
$(PROMPT) " MI.AR " $<
- ar rcs $(TARGET) $(OBJECTS)
+ ar rcs $(TARGET_LIB) $(OBJECTS)
-include $(DEPS)
%.o: %.c