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

View File

@@ -1,9 +0,0 @@
#!/bin/bash
programs=$(ls *.out)
for p in $programs; do
echo "Running $p ..."
./$p
echo ""
done;

View File

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