RISC-V/V203F6P6/termistor/compute/Makefile
2025-01-27 16:21:54 +01:00

21 lines
326 B
Makefile

CC = gcc
CX = g++
LD = ld
VPATH = . ..
CFLAGS = -c -Os -fPIC -I../
OBJS = spline.o
SLIB = spline.so
all: $(SLIB)
$(SLIB): $(OBJS)
$(CX) -shared $(OBJS) -o $(SLIB)
%.o: %.c
$(CC) $(CFLAGS) $< -o $@
%.o: %.cpp
$(CX) $(CFLAGS) $< -o $@
spline.o: spline.cpp ../spline.h ../real_fix.h
clean:
rm -f $(OBJS) spline.so *.png