summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-12-10 14:33:23 +0100
committerNao Pross <naopross@thearcway.org>2018-12-10 14:33:23 +0100
commit48b3312d0bfad0146e578bf55a7a1a074d50e117 (patch)
treecb8a4061ec65312f3ebbcce94d0207fece9c1e05
parentFix vector copy constructors (diff)
downloadcplusplus-48b3312d0bfad0146e578bf55a7a1a074d50e117.tar.gz
cplusplus-48b3312d0bfad0146e578bf55a7a1a074d50e117.zip
Update makefile
-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 $@