From 5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 7 Oct 2024 11:00:04 +0200 Subject: Initial commit --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..44c43bf --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +all: sum.o sum_module.so + +sum.o: + cc -c -o sum.o sum.c + +sum_module.so: + cc -shared -I/usr/include/python3.12 -o sum_module.so sum.o sum_module.c + +clean: + rm -rf *.o *.so + +.PHONY: all clean -- cgit v1.3