From 997ceb15e2b088f7aa8710970d02d658d1844d3f Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 9 Dec 2018 19:21:06 +0100 Subject: Add C 3d vector library example --- vector/makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vector/makefile (limited to 'vector/makefile') diff --git a/vector/makefile b/vector/makefile new file mode 100644 index 0000000..6ce8fd9 --- /dev/null +++ b/vector/makefile @@ -0,0 +1,18 @@ +CARGS := -Wall -Werror -I. +CPPARGS := -Wall -Werror -I. + +all: cpp-vector.pdf c_build/vectors + +%.pdf: %.md + pandoc \ + --latex-engine=xelatex \ + --filter pandoc-include-code \ + $< -o $@ + +c_build/%: %.c + mkdir -p c_build + gcc $(CARGS) $< -o $@ + +cpp_build/%: %.cpp + mkdir -p cpp_build + g++ $(CPPARGS) $< -o $@ -- cgit v1.2.1