Skip to content

Instantly share code, notes, and snippets.

@KPCCoiL
Last active August 29, 2015 14:12
Show Gist options
  • Save KPCCoiL/d2c92d7e260da2d0b850 to your computer and use it in GitHub Desktop.
Save KPCCoiL/d2c92d7e260da2d0b850 to your computer and use it in GitHub Desktop.
CXX = g++
CXXFLAGS = -std=c++11 -O2
SRC = $(wildcard *.cpp)
OBJ = $(subst .cpp,,$(SRC))
$(OBJ): $(SRC)
$(CXX) $(CXXFLAGS) $(SRC) -o $(OBJ)
run: $(OBJ)
./$(OBJ)
paste: $(OBJ)
pbpaste | ./$(OBJ)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment