Makefile (189B)
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
python-cA small Python module in C | |
git clone https://git.tronto.net/python-c | |
Download | Log | Files | Refs | README |
Makefile (189B)
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