ladybird/Editor/Makefile
2018-12-09 13:48:11 +01:00

26 lines
372 B
Makefile

BINARY = cuki
OBJS = \
Document.o \
Line.o \
FileReader.o \
Editor.o \
main.o \
InsertOperation.o \
Operation.o \
UndoStack.o
CXX = g++
CXXFLAGS = -O2 -std=c++1z -W -Wall -g -I../AK
LIBS = -lncurses
$(BINARY): $(OBJS)
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
all: $(BINARY)
clean:
rm -f $(BINARY) $(OBJS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@