Newer
Older
build_scripts / config_linux.mk
@Razvan Turiac Razvan Turiac on 14 Aug 1 KB Added CPP definition
TOOLCHAIN_PREFIX =
TOOLCHAIN_SUFFIX = 

CC = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX)
CPP = $(TOOLCHAIN_PREFIX)cpp$(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 = 

STRIP_ELF = yes

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

$(OUTDIR)/$(TARGET_VER): $(OUTDIR)/$(TARGET_VER).elf | $(OUTDIR)/
	@$(CP) -av $(OUTDIR)/$(TARGET_VER).elf $(OUTDIR)/$(TARGET_VER)

ifdef BUILD_VERSION
$(OUTDIR)/$(TARGET): $(OUTDIR)/$(TARGET_VER).elf | $(OUTDIR)/
	@$(CP) -av $(OUTDIR)/$(TARGET_VER).elf $(OUTDIR)/$(TARGET)

$(OUTDIR)/$(TARGET).a: $(OUTDIR)/$(TARGET_VER).a | $(OUTDIR)/
	@$(CP) -av $(OUTDIR)/$(TARGET_VER).a $(OUTDIR)/$(TARGET).a

$(OUTDIR)/$(TARGET).so: $(OUTDIR)/$(TARGET_VER).so | $(OUTDIR)/
	@$(CP) -av $(OUTDIR)/$(TARGET_VER).so $(OUTDIR)/$(TARGET).so
endif