diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-02-14 18:34:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-02-14 18:34:41 +0100 |
commit | 4f208a00404efd5786302aa778bddf298a307304 (patch) | |
tree | 11a4a427c5ebeab130c8330bddb6225ffa823730 | |
parent | 49c178d6e4804bc85c2e29bf6c9abff5fd5b4f63 (diff) |
Add a makefile for the interpolation SO.
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |