diff options
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..6d39412 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +GPP = gpp +CYTHON = cython + +all: obj/libcoopgamma_native.c + +obj/libcoopgamma_native.pyx: src/libcoopgamma_native.pyx.gpp + @mkdir -p obj + $(GPP) -s '$$$$' -i src/libcoopgamma_native.pyx.gpp -o $@ + +obj/%.c: obj/%.pyx + if ! $(CYTHON) -3 -v $< ; then rm $@ ; false ; fi + |