Skip to content

Instantly share code, notes, and snippets.

@Steboss
Created March 27, 2018 10:54
Show Gist options
  • Save Steboss/2263ea5f69d02711fbd015097e705833 to your computer and use it in GitHub Desktop.
Save Steboss/2263ea5f69d02711fbd015097e705833 to your computer and use it in GitHub Desktop.
Makefile to compile Cython and C codes
all:
cython rect_in.pyx
gcc -g -O3 -fpic -c rect_in.c `python-config --cflags` -std=c99
gcc rect_in.o -o rect_in.so -shared `python-config --ldflags` -std=c99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment