GodMode9/arm11/Makefile
2025-10-17 19:38:36 +02:00

18 lines
471 B
Makefile

PROCESSOR := ARM11
TARGET := $(shell basename "$(CURDIR)")
SOURCE := source
BUILD := build
SUBARCH := -D$(PROCESSOR) -march=armv6k -mtune=mpcore -marm -mfloat-abi=hard -mfpu=vfpv2 -mtp=soft
INCDIRS := source
INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
ASFLAGS += $(SUBARCH) $(INCLUDE)
CFLAGS += $(SUBARCH) $(INCLUDE) -flto=auto
LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto=auto
include ../Makefile.common
include ../Makefile.build