Skip to content

Commit

Permalink
Merge pull request #234 from bees4ever/hymod-unix
Browse files Browse the repository at this point in the history
Provide a makefile
  • Loading branch information
thouska authored Sep 20, 2019
2 parents 88bdef3 + 723388f commit f2f871a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spotpy/examples/hymod_unix/hymod_cython/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
all: prepare hymod

prepare:
@echo "This scripts works best with Linux / Ubuntu"
@echo "cython needs to be installed (with pip install cython or make cython)"
cython --cplus -3 hymod.pyx

cython:
@echo pip i cython
pip install cython

hymod:
g++ hymod.cpp main_hymod.cpp -o hymod `python3-config --includes` `python3-config --cflags` `python3-config --ldflags` -fPIC

clean:
rm -r hymod.dSYM hymod.cpp hymod.h

run:
./hymod

0 comments on commit f2f871a

Please sign in to comment.