Newer
Older
build_scripts / config_linux.mk
@Razvan Turiac Razvan Turiac on 23 Oct 2022 885 bytes Improved scripts.
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 = 


LINK_TARGET = $(TARGET)


define CONFIG_TARGETS

config_final_target: $(BINDIR)/$(LINK_TARGET)
ifeq ($(RELEASE), yes)
	$(STRIP) --strip-debug --strip-unneeded $(BINDIR)/$(LINK_TARGET)
endif

config_clean_target:

endef


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