commit ec901abe19e6762b61d8e24f6fd2cb9908af3b66 from: Aleksey Ryndin date: Mon Feb 20 11:12:04 2023 UTC Makefile tab width = 8 commit - 4eb324fc56fbfdee9f027722c9b5a060db369340 commit + ec901abe19e6762b61d8e24f6fd2cb9908af3b66 blob - eba471893bacdbdb478dd480abb569c134894e50 blob + 05bcedef0d4e0cda55a63b8c080e810f9e31aacc --- Makefile +++ Makefile @@ -1,22 +1,22 @@ -AS = clang -CXX = clang++ -LD = ld.lld +AS = clang +CXX = clang++ +LD = ld.lld OBJCOPY = llvm-objcopy -include local.mk ARCH = aarch64 TARGET = ${ARCH}-none-elf -BOARD = qemu_virt +BOARD = qemu_virt ASFLAGS = -target ${TARGET} ASFILES = boot.o CXXFLAGS = -target ${TARGET} -Wall -Wextra -nostdlib -fno-exceptions -CXXFLAGS += -ffreestanding -mgeneral-regs-only -CXXFLAGS += -Iinclude +CXXFLAGS +=-ffreestanding -mgeneral-regs-only +CXXFLAGS +=-Iinclude CXXFILES = kernel.cc uart_${BOARD}.cc -OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o} +OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o} .PHONY: clean