summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorancarola <raffaele.ancarola@epfl.ch>2019-01-21 23:56:29 +0100
committerancarola <raffaele.ancarola@epfl.ch>2019-01-21 23:56:29 +0100
commit7332819f44838081af9e2b20ad4f68696e7429df (patch)
tree966db215ec1c3146e822fc6f19816349323c1bc6 /makefile
parentFlat removed (diff)
parentAdd libmm and libwrapsdl2 dependencies as submodules (diff)
downloadflatland-7332819f44838081af9e2b20ad4f68696e7429df.tar.gz
flatland-7332819f44838081af9e2b20ad4f68696e7429df.zip
Merge remote-tracking branch 'nao/master'
Good
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