GodMode9/arm9/Makefile

18 lines
634 B
Makefile
Raw Normal View History

2018-03-20 00:56:37 +01:00
PROCESSOR := ARM9
TARGET := $(shell basename "$(CURDIR)")
2017-11-09 01:24:46 +01:00
SOURCE := source
BUILD := build
SUBARCH := -D$(PROCESSOR) -march=armv5te -mtune=arm946e-s -mthumb -mfloat-abi=soft
2018-04-04 20:58:23 +09:00
INCDIRS := source source/common source/filesys source/crypto source/fatfs source/nand source/virtual source/game source/gamecart source/lodepng source/qrcodegen source/system source/utils
2017-11-09 01:24:46 +01:00
INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
ASFLAGS += $(SUBARCH) $(INCLUDE)
2019-03-21 01:23:13 +01:00
CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto
LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto
2017-11-09 01:24:46 +01:00
include ../Makefile.common
include ../Makefile.build