mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-25 21:22:47 +00:00
This quotes $(CURDIR) which fixes an issue with building GM9 in a path with spaces, which Windows users are likely to have.
18 lines
461 B
Makefile
18 lines
461 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
|
|
LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto
|
|
|
|
include ../Makefile.common
|
|
include ../Makefile.build
|