nixos-riscv/tools/Makefile

21 lines
250 B
Makefile
Raw Normal View History

2024-09-06 08:11:24 +02:00
CFLAGS=-static
PREFIX?=/usr/local
bin=plictool csrtool memtool unalign
all: $(bin)
clean:
rm -f $(bin)
install:
mkdir -p $(PREFIX)/bin
cp -a $(bin) $(PREFIX)/bin
plictool: plictool.c
csrtool: csrtool.c
memtool: memtool.c
unalign: unalign.c