diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-25 18:39:27 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-25 18:39:27 -0400 |
commit | a8e05956affb956269774bb78a0cfa6b339ace60 (patch) | |
tree | b0c6005363e7f8f625d7544df76ad8cdf7885470 /src/lib | |
parent | 05455b1b6e2413e8316940d47648a667c9dea9ed (diff) |
libc: Build all cfiles
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/Makefile b/src/lib/libc/Makefile index 792c38f..f2e171a 100644 --- a/src/lib/libc/Makefile +++ b/src/lib/libc/Makefile @@ -1,10 +1,15 @@ +CFILES = $(shell find src/ -name "*.c") OBJ = $(shell find build/ -name "*.o") +OBJ += $(CFILES:.c=.o) LIBC_OUT = libc.a .PHONY: all -all: build sys target +all: build sys $(OBJ) target ar rcs $(LIBC_OUT) $(OBJ) +%.o: %.c + $(CC) -Iinclude/ -I$(TARGET)/include/ -c $< -o $@ + .PHONY: target target: cd $(TARGET); make CC=$(CC) LD=$(LD) AS=$(AS) |