From 6c4998209307cd84982bf056fafa3a3135667bb2 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 27 Aug 2021 02:01:29 +0200 Subject: added esp32 spi daemon --- recipes-bsp/esp32spid/src/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 recipes-bsp/esp32spid/src/Makefile (limited to 'recipes-bsp/esp32spid/src/Makefile') diff --git a/recipes-bsp/esp32spid/src/Makefile b/recipes-bsp/esp32spid/src/Makefile new file mode 100644 index 0000000..fcecbd5 --- /dev/null +++ b/recipes-bsp/esp32spid/src/Makefile @@ -0,0 +1,15 @@ +#CFLAGS = +LDFLAGS = -pthread -lgpiod +TARGET = esp32spid +obj = msgq.o spi.o tun.o + +all: $(TARGET) + +%.o: %.c %.h + $(CC) $(CFLAGS) -c $< + +$(TARGET): $(obj) + $(CC) $(obj) $(LDFLAGS) -o $@ + +clean: + rm -f $(TARGET) *.o -- cgit v1.2.3