Makefile
This commit is contained in:
parent
bba3b8e36d
commit
ce2dbfb2da
|
@ -0,0 +1,15 @@
|
||||||
|
CXX = g++
|
||||||
|
CXXFLAGS = -std=c++20 -Wall -pedantic -O2
|
||||||
|
|
||||||
|
SRCS = $(wildcard *.cpp)
|
||||||
|
EXECS = $(SRCS:.cpp=)
|
||||||
|
|
||||||
|
all: $(EXECS)
|
||||||
|
|
||||||
|
%: %.cpp
|
||||||
|
$(CXX) $(CXXFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(EXECS)
|
||||||
|
|
||||||
|
.PHONY: all clean
|
Loading…
Reference in New Issue