commit 4eb324fc56fbfdee9f027722c9b5a060db369340 from: Aleksey Ryndin date: Mon Feb 20 11:03:33 2023 UTC Alpine linux build refectore commit - 620d1d531d59df70378dd7263bd87280c3a73cb9 commit + 4eb324fc56fbfdee9f027722c9b5a060db369340 blob - 39391afaca664e8eedac367ca940cf0607ac38a0 blob + eba471893bacdbdb478dd480abb569c134894e50 --- Makefile +++ Makefile @@ -1,23 +1,22 @@ +AS = clang +CXX = clang++ +LD = ld.lld +OBJCOPY = llvm-objcopy -include local.mk -BOARD ?=qemu_virt -BIN ?=/usr/local/bin/ -OBJCOPY ?=llvm-objcopy ARCH = aarch64 TARGET = ${ARCH}-none-elf +BOARD = qemu_virt -AS = ${BIN}clang ASFLAGS = -target ${TARGET} ASFILES = boot.o -CXX = ${BIN}clang++ CXXFLAGS = -target ${TARGET} -Wall -Wextra -nostdlib -fno-exceptions CXXFLAGS += -ffreestanding -mgeneral-regs-only CXXFLAGS += -Iinclude CXXFILES = kernel.cc uart_${BOARD}.cc OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o} -LD = ${BIN}ld.lld .PHONY: clean