summaryrefslogtreecommitdiffstats
path: root/vector
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vector/makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/vector/makefile b/vector/makefile
index d504a71..1303aa3 100644
--- a/vector/makefile
+++ b/vector/makefile
@@ -1,5 +1,8 @@
+CC := gcc
CARGS := -Wall -Werror -I.
LDARGS := -lm
+
+CPPC := g++
CPPARGS := -Wall -I.
all: vector.pdf c_build/vector cpp_build/vector
@@ -15,8 +18,8 @@ all: vector.pdf c_build/vector cpp_build/vector
c_build/%: %.c
mkdir -p c_build
- gcc $(CARGS) $< -o $@ $(LDARGS)
+ $(CC) $(CARGS) $< -o $@ $(LDARGS)
cpp_build/%: %.cpp
mkdir -p cpp_build
- g++ $(CPPARGS) $< -o $@
+ $(CPPC) $(CPPARGS) $< -o $@