From 4f208a00404efd5786302aa778bddf298a307304 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 14 Feb 2023 18:34:41 +0100 Subject: Add a makefile for the interpolation SO. --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b10c533 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +TARGET = lib_interp_c.so + +CFLAGS = -std=c99 -fPIC -O3 -g +LDFLAGS = -shared +CC = cc + +OBJS = _interp_c.o + +$(TARGET): $(OBJS) + $(CC) -o $@ $(OBJS) ${LDFLAGS} + +%.o: %.c + $(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $< + +clean: + -rm -f *.o *.d $(TARGET) + +-include $(OBJS:.o=.d) + +.PHONY: clean -- cgit v1.2.3