makefile + testing expanded

This commit is contained in:
2019-04-29 19:15:52 +02:00
parent 047a7ded1d
commit 1814b8208a
2 changed files with 42 additions and 0 deletions

16
tests/makefile Normal file
View File

@@ -0,0 +1,16 @@
CC = g++
CFLAGS = -std=c++17 -Wall
CPPS = $(wildcard *.cpp)
EXES = $(patsubst %.cpp, %.out, $(CPPS))
.PHONY: all clean
%.out: %.cpp
$(CC) $(CFLAGS) $< -o $@
all: $(EXES)
clean:
-rm *.o
-rm *.out