diff --git a/Makefile b/Makefile index b52532b..65f871b 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ CXX ?= c++ -CPPFLAGS ?= -Wall \ - -Wextra \ - -pipe \ - -Wmissing-declarations \ - -pedantic \ - -fstack-protector-strong \ - -O2 - +CPPFLAGS ?= -O2 +CPPFLAGS += -Wall \ + -Wextra \ + -pipe \ + -Wmissing-declarations \ + -pedantic \ + -fstack-protector-strong \ + LDFLAGS=-lncursesw -Wl,-z,relro,-z,now SOURCES = main.cpp \ @@ -32,5 +32,7 @@ $(EXECUTABLE): $(OBJECTS) @$(CXX) $(CPPFLAGS) -c $< -o $@ clean: - rm -rf $(OBJECTS) + rm -rf $(OBJECTS) $(EXECUTABLE) +distclean: + rm -rf $(OBJECTS)