GodMode9/arm11/Makefile

18 lines
449 B
Makefile
Raw Permalink Normal View History

2018-03-20 00:56:37 +01:00
PROCESSOR := ARM11
2017-11-09 01:24:46 +01:00
TARGET := $(shell basename $(CURDIR))
SOURCE := source
BUILD := build
SUBARCH := -D$(PROCESSOR) -march=armv6k -mtune=mpcore -marm -mfloat-abi=hard -mfpu=vfpv2 -mtp=soft
2017-11-09 01:24:46 +01:00
INCDIRS := source
INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
ASFLAGS += $(SUBARCH) $(INCLUDE)
CFLAGS += $(SUBARCH) $(INCLUDE) -flto
LDFLAGS += $(SUBARCH) -Wl,-Map,$(TARGET).map -flto
2017-11-09 01:24:46 +01:00
include ../Makefile.common
include ../Makefile.build