summaryrefslogtreecommitdiffstats
path: root/vector/makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vector/makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/vector/makefile b/vector/makefile
index 6ce8fd9..ad56656 100644
--- a/vector/makefile
+++ b/vector/makefile
@@ -1,17 +1,21 @@
CARGS := -Wall -Werror -I.
+LDARGS := -lm
CPPARGS := -Wall -Werror -I.
-all: cpp-vector.pdf c_build/vectors
+all: vector.pdf c_build/vector
%.pdf: %.md
pandoc \
+ --from=markdown+raw_tex \
--latex-engine=xelatex \
+ --number-sections \
--filter pandoc-include-code \
+ --highlight-style tango \
$< -o $@
c_build/%: %.c
mkdir -p c_build
- gcc $(CARGS) $< -o $@
+ gcc $(CARGS) $< -o $@ $(LDARGS)
cpp_build/%: %.cpp
mkdir -p cpp_build