From e03d341615119788037f9e50c9043a30a2449894 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 9 Dec 2018 13:48:11 +0100 Subject: [PATCH] Editor: Fix build on Linux. --- Editor/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Editor/Makefile b/Editor/Makefile index b67c24746c1..78035e41890 100644 --- a/Editor/Makefile +++ b/Editor/Makefile @@ -6,15 +6,16 @@ OBJS = \ FileReader.o \ Editor.o \ main.o \ - InsertOperation.o \ - Operation.o \ - UndoStack.o + InsertOperation.o \ + Operation.o \ + UndoStack.o -CXXFLAGS = -Os -std=c++1z -W -Wall -g -I../AK -LDFLAGS = -lncurses +CXX = g++ +CXXFLAGS = -O2 -std=c++1z -W -Wall -g -I../AK +LIBS = -lncurses $(BINARY): $(OBJS) - $(CXX) $(LDFLAGS) -o $@ $(OBJS) + $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) all: $(BINARY)