riscv-utils/Makefile
2023-04-16 11:27:46 -07:00

19 lines
199 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 $@ $<
.PHONY: test
test:
@BIN=. test/true.sh