forked from PoliEcho-holding-org/kern
Makefile refactorin'
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Kernel makefile
|
||||
#
|
||||
|
||||
include make.defaults
|
||||
|
||||
$(KERNEL): $(KERNEL_SRC) $(LIBC) $(LIBK)
|
||||
@echo "Compiling $(KERNEL_SRC)..."
|
||||
$(CC) $(CFLAGS) -I$(LIBK_INC) -I$(LIBC_INC) -o $(BIN)/kernel/kernel.o -c $(KERNEL_SRC)
|
||||
$(LD) $(LDFLAGS) -T$(KERNEL_DIR)/kernel.ld --oformat binary -o $(BIN)/kernel.bin $(BIN)/kernel/kernel.o $(LIBC) $(LIBK)
|
||||
|
||||
Reference in New Issue
Block a user