You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
355 B

  1. CXX := g++
  2. CXX_FLAGS := -Wall -Wextra -std=c++11 -ggdb
  3. BIN := bin
  4. SRC := src
  5. INCLUDE := include
  6. LIB := lib
  7. LIBRARIES := -lncurses
  8. EXECUTABLE := main
  9. all: $(BIN)/$(EXECUTABLE)
  10. run: clean all
  11. clear
  12. ./$(BIN)/$(EXECUTABLE)
  13. $(BIN)/$(EXECUTABLE): $(SRC)/*.cpp
  14. $(CXX) $(CXX_FLAGS) -I$(INCLUDE) -L$(LIB) $^ -o $@ $(LIBRARIES)
  15. clean:
  16. -rm $(BIN)/*