riscv-utils/Makefile

20 lines
211 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:
2023-04-16 20:47:49 +00:00
.PHONY: all
all: true false cat
#all: echo
2023-04-16 17:38:46 +00:00
%: %.o
$(LD) -o $@ $<
%.o: %.s
$(AS) -o $@ $<
2023-04-16 18:15:00 +00:00
.PHONY: test
test:
@BIN=. test/true.sh