Build as shared library

This is needed for Pythonification
This commit is contained in:
Samuel Sloniker 2021-08-18 13:41:40 -07:00
parent a7a25738cf
commit c907d10c6a
2 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
worm libworm.so
__pycache__

View File

@ -1,2 +1,4 @@
worm: worm.c libworm.so: worm.c
gcc -o worm worm.c -l curses gcc -c worm.c -l curses -fPIC
gcc -shared -o libworm.so worm.o -l curses
rm worm.o