summaryrefslogtreecommitdiff
path: root/recipes-bsp/esp32spid/src/Makefile
blob: fcecbd5424571b950a97e9735ca78d0576a9b04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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