lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.37k stars 1.13k forks source link

Contribution: Makefile for ArchLinux #108

Open pvshvp-oss opened 5 years ago

pvshvp-oss commented 5 years ago

Below is the makefile that I created by modifying the original one so that it works on Arch Linux and Arch Linux based OSs.

examples: minimal basic modern animation nonblock xkcd quiver bar surface fill_inbetween fill update

minimal: examples/minimal.cpp matplotlibcpp.h
    cd examples && g++ -DWITHOUT_NUMPY minimal.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o minimal -std=c++11

basic: examples/basic.cpp matplotlibcpp.h
    cd examples && g++ basic.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o basic -std=c++11

modern: examples/modern.cpp matplotlibcpp.h
    cd examples && g++ modern.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o modern -std=c++11

animation: examples/animation.cpp matplotlibcpp.h
    cd examples && g++ animation.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o animation -std=c++11

nonblock: examples/nonblock.cpp matplotlibcpp.h
    cd examples && g++ nonblock.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o nonblock -std=c++11

quiver: examples/quiver.cpp matplotlibcpp.h
    cd examples && g++ quiver.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o quiver -std=c++11

xkcd: examples/xkcd.cpp matplotlibcpp.h
    cd examples && g++ xkcd.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o xkcd -std=c++11

bar: examples/bar.cpp matplotlibcpp.h
    cd examples && g++ bar.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o bar -std=c++11

surface: examples/surface.cpp matplotlibcpp.h
    cd examples && g++ surface.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o surface -std=c++11

fill_inbetween: examples/fill_inbetween.cpp matplotlibcpp.h
    cd examples && g++ fill_inbetween.cpp -I/usr/include/python3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -lpython3.7m -o fill_inbetween -std=c++11

fill: examples/fill.cpp matplotlibcpp.h
    cd examples && g++ fill.cpp -I/usr/include/python3.7m -lpython3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -o fill -std=c++11

update: examples/update.cpp matplotlibcpp.h
    cd examples && g++ update.cpp -I/usr/include/python3.7m -lpython3.7m -I/usr/lib/python3.7/site-packages/numpy/core/include -o update -std=c++11

clean:
    rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,fill_inbetween,fill,update}
acxz commented 4 years ago

Note I have created a package for this codebase on the AUR: https://aur.archlinux.org/packages/matplotlib-cpp-git