RISC-V/math/linux/gcc.mk
2024-03-11 15:05:36 +01:00

14 lines
302 B
Makefile

# Use gcc / binutils toolchain
PREFIX =
CC = $(PREFIX)gcc
CXX = $(PREFIX)g++
LD = $(PREFIX)g++
SIZE = $(PREFIX)size
DUMP = $(PREFIX)objdump
COPY = $(PREFIX)objcopy
CFLAGS+= -Os
LFLAGS+= -Wl,--Map=$(@:%.elf=%.map),--gc-sections
#LFLAGS+= -Wl,--print-sysroot -- chyba ld ?
#LFLAGS+= -O3
LDLIBS+= -lc