forked from PoliEcho-holding-org/kern
Fixed everything to work with the new libc
This commit is contained in:
+2
-2
@@ -6,12 +6,12 @@ include make.defaults
|
||||
|
||||
LIBK_ASM=$(LIBK_DIR)/interrupt/isr.s
|
||||
|
||||
$(LIBK): $(LIBK_SRC) $(LIBK_ASM)
|
||||
$(LIBK): $(LIBK_SRC) $(LIBK_ASM) $(LIBC)
|
||||
@echo "Building $(LIBK)..."
|
||||
nasm -felf32 -o $(BIN)/libk/isr_asm.o $(LIBK_ASM)
|
||||
for f in $(LIBK_SRC); do\
|
||||
filename=$$(basename $$f .c);\
|
||||
$(CC) $(CFLAGS) -I$(LIBC_INC) -I$(LIBK_INC) -o $(BIN)/libk/$$filename.o -c $$f;\
|
||||
done
|
||||
$(LD) $(LDFLAGS) -r -o $(LIBK) $(BIN)/libk/**.o
|
||||
$(LD) $(LDFLAGS) -r -o $(LIBK) $(LIBC) $(BIN)/libk/**.o
|
||||
|
||||
|
||||
Reference in New Issue
Block a user