reliant/hello/Makefile

20 lines
330 B
Makefile

STRIP=riscv64-linux-gnu-strip
CC=riscv64-linux-musl-gcc
OBJDUMP=riscv64-linux-gnu-objdump
.FAKE: all clean test
all: hello hello-objdump.txt
clean:
rm -f hello
rm -f hello-objdump.txt
hello: hello.c
$(CC) -static -O2 -o hello hello.c
hello-objdump.txt: hello
$(OBJDUMP) -d hello > hello-objdump.txt
test: hello
./hello