diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-07 11:00:04 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-07 11:00:04 +0200 |
| commit | 5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455 (patch) | |
| tree | ec2599c3ecd97bca952b959fd7ce96817c23312f /Makefile | |
| download | python-c-5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455.tar.gz python-c-5f9adbf56b8dd9d2bc3c83b52eeb4073f7464455.zip | |
Initial commit
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..44c43bf --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | all: sum.o sum_module.so | ||
| 2 | |||
| 3 | sum.o: | ||
| 4 | cc -c -o sum.o sum.c | ||
| 5 | |||
| 6 | sum_module.so: | ||
| 7 | cc -shared -I/usr/include/python3.12 -o sum_module.so sum.o sum_module.c | ||
| 8 | |||
| 9 | clean: | ||
| 10 | rm -rf *.o *.so | ||
| 11 | |||
| 12 | .PHONY: all clean | ||
