RISC-V/V203F6P6/ws2812b/linux/Makefile
2025-01-25 12:21:08 +01:00

19 lines
246 B
Makefile

CC = gcc
CX = g++
LD = ld
CFLAGS = -c -Os -fPIC
OBJS = main.o
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