Move makefile to root

This commit is contained in:
2023-02-18 10:33:40 +01:00
parent 3bf5d68074
commit 76d93bb1cf
2 changed files with 9 additions and 9 deletions

23
makefile Normal file
View File

@@ -0,0 +1,23 @@
CC = g++
CFLAGS = -std=c++17 -Wall -g -Wextra
CPPS = $(wildcard test/*.cpp)
EXES = $(patsubst %.cpp, %.out, $(CPPS))
.PHONY: all clean rebuild check
all: $(EXES)
clean:
-rm test/*.o
-rm test/*.out
rebuild: clean all
EXESQUOTED = $(patsubst %, "%", $(EXES))
check: all
./execute-all.sh
%.out: %.cpp
$(CC) $(CFLAGS) $< -o $@