diff options
author | Nao Pross <naopross@thearcway.org> | 2018-12-10 14:33:23 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-12-10 14:33:23 +0100 |
commit | 48b3312d0bfad0146e578bf55a7a1a074d50e117 (patch) | |
tree | cb8a4061ec65312f3ebbcce94d0207fece9c1e05 /vector/makefile | |
parent | Fix vector copy constructors (diff) | |
download | cplusplus-48b3312d0bfad0146e578bf55a7a1a074d50e117.tar.gz cplusplus-48b3312d0bfad0146e578bf55a7a1a074d50e117.zip |
Update makefile
Diffstat (limited to 'vector/makefile')
-rw-r--r-- | vector/makefile | 7 |
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 $@ |