ScrapExplorer - Makefile
Home / arch / arm / arm_barebones Lines: 1 | Size: 578 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# Aarch64 OS 2# Github: https://github.com/0x4248/aarch64_os 3# By: 0x4248 4 5AS = as 6CC = gcc 7LD = ld 8 9SRC = src 10 11BOOT = boot/boot.s 12KERNEL = kernel/kernel.c 13INCLUDE = -I include 14 15QEMU = qemu-system-aarch64 16QEMU_FLAGS = -machine virt -cpu cortex-a57 -kernel $(OUTPUT) -nographic 17 18OUTPUT = kernel.elf 19 20all: build 21 22build: 23 $(AS) $(BOOT) -o boot.o 24 $(CC) -ffreestanding -c kernel/power.c $(INCLUDE) -o power.o 25 $(CC) -ffreestanding -c $(KERNEL) $(INCLUDE) -o kernel.o 26 $(LD) -nostdlib -T linker.ld boot.o kernel.o power.o -o $(OUTPUT) 27 rm boot.o kernel.o 28 29run: 30 $(QEMU) $(QEMU_FLAGS) 31[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.