k210-sdk-stuff/linux/Makefile
Wladimir J. van der Laan d9750dcf73 Add k210 linux utilities
2020-02-21 15:42:04 +00:00

16 lines
267 B
Makefile

CROSS ?= /opt/riscv64-uclibc/bin/riscv64-buildroot-linux-uclibc-
CFLAGS = -fPIC -Wl,-elf2flt=-r -Wall
BINARIES = term esptun
all: $(BINARIES)
clean:
rm -f $(BINARIES)
term: term.c
${CROSS}gcc $< -o $@ $(CFLAGS)
esptun: esptun.c
${CROSS}gcc $< -o $@ $(CFLAGS)