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
|
2023-04-17 02:04:10 +00:00
|
|
|
all: true false cat env
|
2023-04-16 20:47:49 +00:00
|
|
|
#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
|