k210-sdk-stuff/linux/Makefile

16 lines
274 B
Makefile
Raw Normal View History

2020-02-21 19:40:43 +04:00
CROSS ?= /opt/riscv64-uclibc/bin/riscv64-buildroot-linux-uclibc-
CFLAGS = -fPIC -Wl,-elf2flt=-r -Wall -Os -g
2020-02-21 19:40:43 +04:00
BINARIES = term esptun
all: $(BINARIES)
clean:
rm -f $(BINARIES)
term: term.c
${CROSS}gcc $< -o $@ $(CFLAGS)
esptun: esptun.c
${CROSS}gcc $< -o $@ $(CFLAGS)