mirror of
https://github.com/laanwj/k210-sdk-stuff.git
synced 2024-11-23 01:46:19 +04:00
16 lines
267 B
Makefile
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)
|
||
|
|