riscv-utils/Makefile

15 lines
158 B
Makefile
Raw Normal View History

2023-04-16 17:38:46 +00:00
TARGET ?= riscv64-linux-gnu
AS = $(TARGET)-as
LD = $(TARGET)-ld
.SUFFIXES:
all: true false
#all: cat echo
%: %.o
$(LD) -o $@ $<
%.o: %.s
$(AS) -o $@ $<