summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-21 20:18:15 +0100
committerNao Pross <naopross@thearcway.org>2019-01-21 20:18:15 +0100
commit80e89efaf3c267600764d6e5abb27bf5a179a762 (patch)
treed3e37180bed6b42802ad657c64a2312a7b8dd6bf /makefile
parentTest 3 partially executed (diff)
downloadflatland-80e89efaf3c267600764d6e5abb27bf5a179a762.tar.gz
flatland-80e89efaf3c267600764d6e5abb27bf5a179a762.zip
Update makefile to use C++17 and -Wall
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/makefile b/makefile
index ff266b7..86f67a9 100644
--- a/makefile
+++ b/makefile
@@ -4,7 +4,7 @@
NAME := flatland
BIN := bin/lib$(NAME).so
CC := g++
-CPP11 := -std=c++11
+CFLAGS := -Wall -std=c++17
DIRS := engine
BACKUP := backup
@@ -25,14 +25,14 @@ all: $(BIN)
$(BIN): dirs $(OBJ)
@printf "\nAssembling binaries\n\n"
- $(CC) -shared -o $@ $(OBJ) -I $(INCLUDES) $(LIBS) $(CPP11)
+ $(CC) $(CFLAGS) -shared -o $@ $(OBJ) -I $(INCLUDES) $(LIBS)
@printf "\nCompilation successfully completed\n"
# compile all sources
$(OBJ): bin/%.o : %.cpp $(SRC)
@printf "\nCompiling $<\n"
- $(CC) -c $< -fPIC -o $@ -I $(INCLUDES) $(LIBS) $(CPP11)
+ $(CC) $(CFLAGS) -c $< -fPIC -o $@ -I $(INCLUDES) $(LIBS)
# phony commands implementation