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