Add distclean in Makefile and CPPFLAGS defaults

This commit is contained in:
2015-04-26 09:38:03 +03:00
parent b30fd011d0
commit 57d90a3015

View File

@@ -1,11 +1,11 @@
CXX ?= c++ CXX ?= c++
CPPFLAGS ?= -Wall \ CPPFLAGS ?= -O2
CPPFLAGS += -Wall \
-Wextra \ -Wextra \
-pipe \ -pipe \
-Wmissing-declarations \ -Wmissing-declarations \
-pedantic \ -pedantic \
-fstack-protector-strong \ -fstack-protector-strong \
-O2
LDFLAGS=-lncursesw -Wl,-z,relro,-z,now LDFLAGS=-lncursesw -Wl,-z,relro,-z,now
@@ -32,5 +32,7 @@ $(EXECUTABLE): $(OBJECTS)
@$(CXX) $(CPPFLAGS) -c $< -o $@ @$(CXX) $(CPPFLAGS) -c $< -o $@
clean: clean:
rm -rf $(OBJECTS) rm -rf $(OBJECTS) $(EXECUTABLE)
distclean:
rm -rf $(OBJECTS)