2025-01-25 10:55:11 +01:00
|
|
|
CC = gcc
|
|
|
|
CX = g++
|
|
|
|
LD = ld
|
2025-01-25 15:08:53 +01:00
|
|
|
VPATH = . ..
|
|
|
|
CFLAGS = -c -Os -fPIC -I../ -I../common
|
2025-01-25 10:55:11 +01:00
|
|
|
|
2025-01-25 15:08:53 +01:00
|
|
|
OBJS = main.o ws2812b.o
|
2025-01-25 10:55:11 +01:00
|
|
|
SLIB = graph.so
|
|
|
|
|
|
|
|
all: $(SLIB)
|
|
|
|
|
|
|
|
$(SLIB): $(OBJS)
|
|
|
|
$(CX) -shared $(OBJS) -o $(SLIB)
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CX) $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) *.png
|