forked from Cryoris/matplotlib-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (54 loc) · 3.41 KB
/
Makefile
File metadata and controls
80 lines (54 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Put the path to your Python.h here
includes = -I /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/include/python3.7m
# Numpy include
includes += -I /usr/local/lib/python3.7/site-packages/numpy/core/include
# Add the path to the directory containing libpython*.a here if the linking fails
includes += -L /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib
# Link your python version
linkings = -lpython3.7
# Compiler definitions
definitions = -std=c++11
# Eigen include
eigen_include = -I /usr/local/include/eigen3
examples: minimal basic modern animation nonblock xkcd quiver bar surface subplot fill_inbetween fill update
eigen: eigen_basic eigen_modern eigen_loglog eigen_semilogx eigen_semilogy
minimal: examples/minimal.cpp matplotlibcpp.h
cd examples && g++ -DWITHOUT_NUMPY minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
#cd examples && g++ minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
basic: examples/basic.cpp matplotlibcpp.h
cd examples && g++ basic.cpp ${includes} ${linkings} -o basic ${definitions}
modern: examples/modern.cpp matplotlibcpp.h
cd examples && g++ modern.cpp ${includes} ${linkings} -o modern ${definitions}
animation: examples/animation.cpp matplotlibcpp.h
cd examples && g++ animation.cpp ${includes} ${linkings} -o animation ${definitions}
nonblock: examples/nonblock.cpp matplotlibcpp.h
cd examples && g++ nonblock.cpp ${includes} ${linkings} -o nonblock ${definitions}
quiver: examples/quiver.cpp matplotlibcpp.h
cd examples && g++ quiver.cpp ${includes} ${linkings} -o quiver ${definitions}
xkcd: examples/xkcd.cpp matplotlibcpp.h
cd examples && g++ xkcd.cpp ${includes} ${linkings} -o xkcd ${definitions}
bar: examples/bar.cpp matplotlibcpp.h
cd examples && g++ bar.cpp ${includes} ${linkings} -o bar ${definitions}
surface: examples/surface.cpp matplotlibcpp.h
cd examples && g++ surface.cpp ${includes} ${linkings} -o surface ${definitions}
subplot: examples/subplot.cpp matplotlibcpp.h
cd examples && g++ subplot.cpp ${includes} ${linkings} -o subplot ${definitions}
fill_inbetween: examples/fill_inbetween.cpp matplotlibcpp.h
cd examples && g++ fill_inbetween.cpp ${includes} ${linkings} -o fill_inbetween ${definitions}
fill: examples/fill.cpp matplotlibcpp.h
cd examples && g++ fill.cpp ${includes} ${linkings} -o fill ${definitions}
update: examples/update.cpp matplotlibcpp.h
cd examples && g++ update.cpp ${includes} ${linkings} -o update ${definitions}
eigen_basic: examples/eigen/basic.cpp matplotlibcpp.h
cd examples/eigen && g++ basic.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
eigen_modern: examples/eigen/modern.cpp matplotlibcpp.h
cd examples/eigen && g++ modern.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
eigen_loglog: examples/eigen/loglog.cpp matplotlibcpp.h
cd examples/eigen && g++ loglog.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
eigen_semilogx: examples/eigen/semilogx.cpp matplotlibcpp.h
cd examples/eigen && g++ semilogx.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
eigen_semilogy: examples/eigen/semilogy.cpp matplotlibcpp.h
cd examples/eigen && g++ semilogy.cpp ${includes} ${eigen_include} ${linkings} -o $@ ${definitions}
clean:
rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,subplot,fill_inbetween,fill,update}
rm -f examples/eigen/{eigen_basic,eigen_modern,eigen_loglog}