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,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)