diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-21 20:18:15 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-21 20:18:15 +0100 |
commit | 80e89efaf3c267600764d6e5abb27bf5a179a762 (patch) | |
tree | d3e37180bed6b42802ad657c64a2312a7b8dd6bf /makefile | |
parent | Test 3 partially executed (diff) | |
download | flatland-80e89efaf3c267600764d6e5abb27bf5a179a762.tar.gz flatland-80e89efaf3c267600764d6e5abb27bf5a179a762.zip |
Update makefile to use C++17 and -Wall
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |