|
1 | 1 | # Put the path to your Python.h here
|
2 |
| -includes = -I /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m |
| 2 | +includes = -I /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/include/python3.7m |
3 | 3 |
|
4 |
| -# Numpy include |
| 4 | +# Numpy include |
5 | 5 | includes += -I /usr/local/lib/python3.7/site-packages/numpy/core/include
|
6 | 6 |
|
7 | 7 | # Add the path to the directory containing libpython*.a here if the linking fails
|
8 |
| -includes += -L /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib |
| 8 | +includes += -L /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib |
9 | 9 |
|
10 |
| -# Link your python version |
| 10 | +# Link your python version |
11 | 11 | linkings = -lpython3.7
|
12 | 12 |
|
13 | 13 | # Compiler definitions
|
14 | 14 | definitions = -std=c++11
|
15 | 15 |
|
| 16 | +# Eigen include |
| 17 | +eigen_include = -I /usr/local/include/eigen3 |
| 18 | + |
16 | 19 | examples: minimal basic modern animation nonblock xkcd quiver bar surface subplot fill_inbetween fill update
|
17 | 20 |
|
| 21 | +eigen: eigen_basic eigen_modern eigen_loglog eigen_semilogx eigen_semilogy |
| 22 | + |
18 | 23 | minimal: examples/minimal.cpp matplotlibcpp.h
|
19 | 24 | cd examples && g++ -DWITHOUT_NUMPY minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
|
20 | 25 | #cd examples && g++ minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
|
@@ -51,9 +56,25 @@ fill_inbetween: examples/fill_inbetween.cpp matplotlibcpp.h
|
51 | 56 |
|
52 | 57 | fill: examples/fill.cpp matplotlibcpp.h
|
53 | 58 | cd examples && g++ fill.cpp ${includes} ${linkings} -o fill ${definitions}
|
54 |
| - |
| 59 | + |
55 | 60 | update: examples/update.cpp matplotlibcpp.h
|
56 | 61 | cd examples && g++ update.cpp ${includes} ${linkings} -o update ${definitions}
|
57 | 62 |
|
| 63 | +eigen_basic: examples/eigen/basic.cpp matplotlibcpp.h |
| 64 | + cd examples/eigen && g++ basic.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions} |
| 65 | + |
| 66 | +eigen_modern: examples/eigen/modern.cpp matplotlibcpp.h |
| 67 | + cd examples/eigen && g++ modern.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions} |
| 68 | + |
| 69 | +eigen_loglog: examples/eigen/loglog.cpp matplotlibcpp.h |
| 70 | + cd examples/eigen && g++ loglog.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions} |
| 71 | + |
| 72 | +eigen_semilogx: examples/eigen/semilogx.cpp matplotlibcpp.h |
| 73 | + cd examples/eigen && g++ semilogx.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions} |
| 74 | + |
| 75 | +eigen_semilogy: examples/eigen/semilogy.cpp matplotlibcpp.h |
| 76 | + cd examples/eigen && g++ semilogy.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions} |
| 77 | + |
58 | 78 | clean:
|
59 | 79 | rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,subplot,fill_inbetween,fill,update}
|
| 80 | + rm -f examples/eigen/{eigen_basic,eigen_modern,eigen_loglog} |
0 commit comments