From: FreeBirdLjj Date: Wed, 17 Sep 2014 15:08:26 +0000 (+0800) Subject: Replace `strip` with `ld` `-s' option. X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=commitdiff_plain;h=e50583bb108261f18ae8746cfdb40c517eec8e5e Replace `strip` with `ld` `-s' option. --- diff --git a/Makefile b/Makefile index 1748cbd..4360f37 100644 --- a/Makefile +++ b/Makefile @@ -19,12 +19,14 @@ # CFLAGS = -O3 +LDFLAGS = -s LDLIBS = -lncurses OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o DESTDIR ?= /usr/bin ifeq ($(DEBUG),1) - CFLAGS := -Wall -g -O0 +CFLAGS := -Wall -g -O0 +LDFLAGS := endif all: mdp @@ -35,7 +37,6 @@ clean: $(RM) $(OBJECTS) mdp install: mdp - if which strip 1>/dev/null 2>&1; then strip mdp; fi install -d $(PREFIX)$(DESTDIR) install -m 755 mdp $(PREFIX)$(DESTDIR)/mdp