diff options
author | Uros Majstorovic <majstor@majstor.org> | 2025-05-28 00:00:25 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2025-05-28 00:00:25 +0200 |
commit | 040f2299065caf64dbe5228b91f8abf8add9862b (patch) | |
tree | fe8371912709f4a52c43ed8e7cc5f864a225b6bc /yocto/esp32d/Makefile | |
parent | 51181684435dc6cf1cbeaed592adb4340a33fb1e (diff) |
Diffstat (limited to 'yocto/esp32d/Makefile')
-rw-r--r-- | yocto/esp32d/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/yocto/esp32d/Makefile b/yocto/esp32d/Makefile new file mode 100644 index 0000000..677d09d --- /dev/null +++ b/yocto/esp32d/Makefile @@ -0,0 +1,15 @@ +#CFLAGS = +LDFLAGS = -pthread -lgpiod +TARGET = esp32d +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 |