riscv-utils/Makefile

15 lines
158 B
Makefile

TARGET ?= riscv64-linux-gnu
AS = $(TARGET)-as
LD = $(TARGET)-ld
.SUFFIXES:
all: true false
#all: cat echo
%: %.o
$(LD) -o $@ $<
%.o: %.s
$(AS) -o $@ $<