RISC-V/V203F6P6/ws2812b/linux/Makefile

20 lines
246 B
Makefile
Raw Normal View History

2025-01-25 10:55:11 +01:00
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