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) INSTALL = install #environment variables ARCH_CFLAGS = OPT_CFLAGS = PLATFORM_CFLAGS = -fsigned-char PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) PLATFORM_LDFLAGS = LINK_TARGET = $(TARGET) define CONFIG_TARGETS .PHONY: install uninstall config_final_target: $(BINDIR)/$(LINK_TARGET) ifeq ($(RELEASE), yes) $(STRIP) --strip-debug --strip-unneeded $(BINDIR)/$(LINK_TARGET) endif install: $(BINDIR)/$(LINK_TARGET) $(SUDO) $(INSTALL) -m 0755 -o root $(BINDIR)/$(LINK_TARGET) /usr/bin/$(LINK_TARGET) @echo uninstall: -$(SUDO) $(RM) -f /usr/bin/$(LINK_TARGET) endef define CONFIG_CLEAN_TARGET endef include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/build.mk