2021-04-08 00:12:43 +00:00
|
|
|
TARGETDIR := qsort
|
|
|
|
TARGET := $(TARGETDIR)/$(TARGETDIR).elf
|
|
|
|
ROOT := ..
|
|
|
|
LIBRARY_DIRS := ${ROOT}/crt0
|
|
|
|
LIBRARY_FILES := crt0
|
|
|
|
|
|
|
|
MARCH :=-march=rv64ic
|
|
|
|
MABI :=-mabi=lp64
|
|
|
|
LINK_FLAGS :=$(MARCH) $(MABI) -nostartfiles -Wl,-Map=$(TARGET).map
|
|
|
|
|
2021-05-27 16:48:29 +00:00
|
|
|
CFLAGS =$(MARCH) $(MABI) -Wa,-alhs -Wa,-L -mcmodel=medany -mstrict-align -O2
|
2021-04-08 00:12:43 +00:00
|
|
|
|
|
|
|
CC=riscv64-unknown-elf-gcc
|
|
|
|
DA=riscv64-unknown-elf-objdump -d
|
|
|
|
|
|
|
|
|
|
|
|
include $(ROOT)/makefile.inc
|
|
|
|
|
|
|
|
|