CXX = g++ERROR = 2>error.txtCXXFLAGS= -O2 -g -std=c++11TARGET = main.exeTARGET2 = main2.exeSOURCES = main.cppIN = < in.txtOUT = > out.txtall:$(SOURCES) @echo $(SOURCES) $(CXX) $(SOURCES) $(CXXFLAGS) -o $(TARGET) $(ERROR) $(TARGET) $(IN) $(OUT) $(TARGET2):$(SOURCES) $(CXX) $(SOURCES) $(CXXFLAGS) -o $@ $(ERROR) clean: del *.exe