aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4815a84..55b1e1c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC := gcc
-CFLAGS := -O2 -g -Wall -ffunction-sections -fdata-sections -ffast-math -fomit-frame-pointer -fexpensive-optimizations
+CFLAGS := -O2 -g -Wall -ffunction-sections -fdata-sections -ffast-math -fomit-frame-pointer -fexpensive-optimizations -Wl,--gc-sections
LDFLAGS :=
RM := rm -rf
LIBS := -lcurses
@@ -48,6 +48,9 @@ xidle: xidle.o
@echo 'Finished building target: $@'
@echo ' '
+strip:
+ strip -s $(TARGETS)
+
clean:
-$(RM) aes.o asciihexer.o dummyshell.o gol.o suidcmd.o xidle.o
-$(RM) aes.d asciihexer.d dummyshell.d gol.d suidcmd.d xidle.d
@@ -56,4 +59,4 @@ clean:
rebuild: clean all
-.PHONY: all clean
+.PHONY: all clean strip