summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7e36cc1..18eeefd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,16 @@
CXX=g++
-CXXFLAGS=-Wall -Wpedantic -ggdb -std=c++17
+CXXFLAGS=-Wall -Wpedantic -O2 -std=c++17
SOURCES := $(wildcard *.cpp)
EXECS := $(patsubst %.cpp,%.out,$(SOURCES))
+.PHONY: all clean
+
all: $(EXECS)
%.out: %.cpp
$(CXX) $(CXXFLAGS) $< -o $@
+
+clean:
+ $(RM) $(EXECS)
+ $(RM) -r *.dSYM
+