1CXXFLAGS += -Wall -std=c++11 2LDLIBS += -lncurses 3 4.PHONY : all clean debug 5 6all : braincurses 7 8debug : CXXFLAGS += -DDEBUG -ggdb -O0 9debug : braincurses 10 11braincurses : main.o code.o braincurses.o 12 $(LINK.cc) $^ ${LDLIBS} -o $@ 13 14clean : 15 @- $(RM) braincurses 16 @- $(RM) *.o 17