MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
DIR := $(dir $(MAKEFILE_PATH))

LIB ?= .
OPT ?= -Og
GENERATED ?=

AARCH = -march=armv4 -mlittle-endian

CARCH = -mno-thumb-interwork -march=armv4 -mtune=arm7di -mlittle-endian
CFLAGS += -I$(dir $(MAKEFILE_PATH))/../..

CXXFLAGS += -std=c++2a

OBJARCH = -O elf32-littlearm -B armv4

TARGET = arm-none-eabi-

include base.mk

main.elf: LDSCRIPT = main.lds
main.elf: start.o main.o audio.pcm.o
