Makefile refactorin'

This commit is contained in:
2024-10-18 17:18:24 +02:00
parent 63ecaec569
commit 958625b798
17 changed files with 175 additions and 150 deletions
+14
View File
@@ -0,0 +1,14 @@
#
# C Standard library
#
include make.defaults
$(LIBC): $(LIBC_SRC)
@echo "Building $(LIBC)..."
for f in $(LIBC_SRC); do\
filename=$$(basename $$f .c);\
$(CC) $(CFLAGS) -I$(LIBC_INC) -o $(BIN)/libc/$$filename.o -c $$f;\
done
$(LD) $(LDFLAGS) -r -o $(LIBC) $(BIN)/libc/**.o