MNRS-BM-BSP/hello-world/Makefile

17 lines
396 B
Makefile
Raw Normal View History

2018-09-25 18:31:29 +02:00
2018-09-25 20:32:56 +02:00
TARGET = hello
C_SRCS = $(wildcard *.c)
#HEADERS = $(wildcard *.h)
2018-09-25 18:31:29 +02:00
#CFLAGS += -O2
BOARD=freedom-e300-hifive1
LINK_TARGET=link
RISCV_ARCH=rv32imac
RISCV_ABI=ilp32
2018-09-25 20:32:56 +02:00
LDFLAGS = -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=medany
2018-09-25 18:31:29 +02:00
TOOL_DIR?=/opt/riscv/FreedomStudio/20180122/SiFive/riscv64-unknown-elf-gcc-20171231-x86_64-linux-centos6/bin
BSP_BASE = ./bsp
include $(BSP_BASE)/env/common.mk