aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-19 15:22:00 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-19 15:22:00 +0100
commit19ae4e74aedbbfde9aaed9241f616decc3ec9059 (patch)
treec4eca1b207261e24b645d5d861b3b27631ead75e /Makefile
parentc435852cc6147a0af23ef12cc0a07a195ac60756 (diff)
download2048-19ae4e74aedbbfde9aaed9241f616decc3ec9059.tar.gz
2048-19ae4e74aedbbfde9aaed9241f616decc3ec9059.tar.bz2
2048-19ae4e74aedbbfde9aaed9241f616decc3ec9059.zip
Interface for ai (tested with random AI)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5cd4949..681f96e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ INCDIR = include
OBJDIR = build
CXX = g++
-CXXFLAGS = -Wall -Wextra -I$(INCDIR) $(shell sdl2-config --cflags)
+CXXFLAGS = -Wall -Wextra -I$(INCDIR) $(shell sdl2-config --cflags) -std=c++11
LDFLAGS = $(shell sdl2-config --libs) -lSDL2_ttf
SRC = $(shell find $(SRCDIR) -type f -name "*.cpp")
@@ -18,7 +18,7 @@ OBJ = $(SRC:$(SRCDIR)/%.cpp=$(OBJDIR)/%.o)
all: prebuild $(NAME)
prebuild:
- $(MKDIR) $(OBJDIR)
+ @$(MKDIR) $(OBJDIR)
$(NAME): $(OBJ)
$(CXX) -o $@ $^ $(LDFLAGS)