Skip to content

Instantly share code, notes, and snippets.

@tinwritescode
Created March 22, 2020 11:20
Show Gist options
  • Select an option

  • Save tinwritescode/d47c2f8a121b32ccc0317a8b54f0eb4c to your computer and use it in GitHub Desktop.

Select an option

Save tinwritescode/d47c2f8a121b32ccc0317a8b54f0eb4c to your computer and use it in GitHub Desktop.
CXX := g++
CXX_FLAGS := -std=c++17 -ggdb -Wall
BIN := bin
INCLUDE := include
LIBRARIES :=
EXECUTABLE := main
all: $(BIN)/$(EXECUTABLE)
run: clean all
clear
./$(BIN)/$(EXECUTABLE)
$(BIN)/$(EXECUTABLE): *.cpp
$(CXX) $(CXX_FLAGS) $^ -o $@ $(LIBRARIES)
clean:
-rm $(BIN)/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment