.SUFFIXES:
.PHONY: all compile checkstyle test clean format
CXX = clang++ -Wall -Wextra -fsanitize=address
LIBS = -lncursesw
all: compile format checkstyle test
compile: ProjektDemoMain
test:
checkstyle:
clang-format-18 --dry-run -Werror *.h *.cpp
format:
clang-format-18 -i *.h *.cpp
%Main: %Main.o TerminalManager.o NCursesTerminalManager.o
$(CXX) $^ -o $@ $(LIBS)
%.o: %.cpp *.h
$(CXX) -c $<
clean:
rm -f *.o
rm -f *Main