mirror of
https://github.com/Minres/RISCV-VP.git
synced 2025-12-17 17:01:35 +00:00
18 lines
344 B
Makefile
18 lines
344 B
Makefile
|
|
TARGET = hello
|
|
C_SRCS = $(wildcard *.c)
|
|
HEADERS = $(wildcard *.h)
|
|
CFLAGS += -O0 -g
|
|
|
|
BOARD=tgc_vp
|
|
LINK_TARGET=link
|
|
RISCV_ARCH:=rv32imc
|
|
RISCV_ABI:=ilp32
|
|
LDFLAGS := -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI)
|
|
|
|
compiler := $(shell which riscv32-unknown-elf-gcc)
|
|
TOOL_DIR=$(dir $(compiler))
|
|
|
|
BSP_BASE = ../bsp
|
|
include $(BSP_BASE)/env/common-gcc.mk
|