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.

18 lines
393 B

2 years ago
  1. .PHONY: clean
  2. CXX = g++
  3. FILTER = *
  4. INCLUDE = ../include
  5. SOURCES = $(wildcard $(FILTER).cpp)
  6. EXECS = $(notdir $(SOURCES:.cpp=))
  7. FLAGS = -I $(INCLUDE) -std=c++11 -Wall -Wextra -Wpedantic -g -O0
  8. .PHONY: all clean
  9. all: $(EXECS)
  10. clean:
  11. find -type f -not -name "*.cpp" -not -name "Makefile" -not -name "runall" | xargs rm
  12. % : %.cpp $(INCLUDE)/clipp.h
  13. $(CXX) $(FLAGS) -o $@ $<