makefile + testing expanded
This commit is contained in:
16
tests/makefile
Normal file
16
tests/makefile
Normal 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
|
||||
Reference in New Issue
Block a user