Newer
Older
build_scripts / config_linux.mk
@Razvan Turiac Razvan Turiac on 25 Apr 946 bytes ...
TOOLCHAIN_PREFIX =
TOOLCHAIN_SUFFIX = 

CC = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX)
GDB = $(TOOLCHAIN_PREFIX)gdb$(TOOLCHAIN_SUFFIX)
SIZE = $(TOOLCHAIN_PREFIX)size$(TOOLCHAIN_SUFFIX)
OBJCOPY = $(TOOLCHAIN_PREFIX)objcopy$(TOOLCHAIN_SUFFIX)
OBJDUMP = $(TOOLCHAIN_PREFIX)objdump$(TOOLCHAIN_SUFFIX)
STRIP = $(TOOLCHAIN_PREFIX)strip$(TOOLCHAIN_SUFFIX)
READELF = $(TOOLCHAIN_PREFIX)readelf$(TOOLCHAIN_SUFFIX)
NM = $(TOOLCHAIN_PREFIX)nm$(TOOLCHAIN_SUFFIX)


#environment variables
ARCH_CFLAGS = 
OPT_CFLAGS = 

PLATFORM_CFLAGS = -fsigned-char
PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS)

PLATFORM_LDFLAGS = 

define CONFIG_TARGETS
$(BINDIR)/$(TARGET_VER): $(BINDIR)/$(TARGET_VER).elf | $(BINDIR)/
	@$(CP) -av $(BINDIR)/$(TARGET_VER).elf $(BINDIR)/$(TARGET_VER)

$(BINDIR)/$(TARGET): $(BINDIR)/$(TARGET_VER).elf | $(BINDIR)/
	@$(CP) -av $(BINDIR)/$(TARGET_VER).elf $(BINDIR)/$(TARGET)
endef


include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk