mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 13:34:28 +00:00
19 lines
435 B
Makefile
19 lines
435 B
Makefile
|
TARGETDIR := simple
|
||
|
TARGET := $(TARGETDIR)/$(TARGETDIR).elf
|
||
|
ROOT := ..
|
||
|
LIBRARY_DIRS := ${ROOT}/crt0
|
||
|
LIBRARY_FILES := crt0
|
||
|
|
||
|
MARCH :=-march=rv64imfdc
|
||
|
MABI :=-mabi=lp64d
|
||
|
LINK_FLAGS :=$(MARCH) $(MABI) -nostartfiles -Wl,-Map=$(TARGET).map
|
||
|
|
||
|
CFLAGS =$(MARCH) $(MABI) -Wa,-alhs -Wa,-L -mcmodel=medany -mstrict-align -O2
|
||
|
CC=riscv64-unknown-elf-gcc
|
||
|
DA=riscv64-unknown-elf-objdump -d
|
||
|
|
||
|
|
||
|
include $(ROOT)/makefile.inc
|
||
|
|
||
|
|