sfm

simple file manager
git clone git://git.afify.dev/sfm
Log | Files | Refs | README | LICENSE

commit aa11844d533c54488a96c7a32a7eb5c19a9b5663
parent 0b9d60f6f9656f15148c316314553004e77ee4e3
Author: afify <hassan@afify.dev>
Date:   Wed, 16 Dec 2020 20:51:29 +0300

[feat] add LDFLAGS -s for stripping

Diffstat:
MMakefile | 3++-
MREADME.md | 1+
Mconfig.mk | 1+
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -11,6 +11,7 @@ all: options sfm options: @echo sfm build options: @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" .c.o: @@ -22,7 +23,7 @@ config.h: cp config.def.h $@ sfm: ${OBJ} - ${CC} -o $@ ${OBJ} + ${CC} ${LDFLAGS} -o $@ ${OBJ} clean: rm -f sfm ${OBJ} sfm-${VERSION}.tar.gz diff --git a/README.md b/README.md @@ -54,6 +54,7 @@ $ man sfm | `j` | select down | | `k` | select up | | `d` | delete selection | +| `y` | yank selection | | `v` | exit visual mode | | `q` | exit visual mode | | `ESC` | exit visual mode | diff --git a/config.mk b/config.mk @@ -8,6 +8,7 @@ MANPREFIX = ${PREFIX}/share/man # flags CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DVERSION=\"${VERSION}\" CFLAGS = -std=c99 -pedantic -Wextra -Wall -Os ${CPPFLAGS} +LDFLAGS = -s # compiler and linker CC = cc