Add distclean in Makefile and CPPFLAGS defaults
This commit is contained in:
18
Makefile
18
Makefile
@@ -1,11 +1,11 @@
|
||||
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
|
||||
|
||||
@@ -32,5 +32,7 @@ $(EXECUTABLE): $(OBJECTS)
|
||||
@$(CXX) $(CPPFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJECTS)
|
||||
rm -rf $(OBJECTS) $(EXECUTABLE)
|
||||
|
||||
distclean:
|
||||
rm -rf $(OBJECTS)
|
||||
|
||||
Reference in New Issue
Block a user