Newer
Older
build_scripts / config_linux_lib.mk
@Razvan Turiac Razvan Turiac on 23 Oct 2022 851 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 = 


define CONFIG_TARGETS

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

config_clean_target:

endef


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