diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-13 21:53:53 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-13 21:53:53 -0400 |
commit | 3770715193be37c9d4bff160aa4ce6fe12c55b93 (patch) | |
tree | f2934f2a067c4c0c92376e55f09b2072b6b055cf | |
parent | d66a88189a48f526ee70db8bf3e375b5b5990513 (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>
-rw-r--r-- | src/sys/os/Makefile | 6 |
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 |