makeを実行したら、バイナリがもっと小さくなる
author諏訪子 <suwako@076.moe>
Thu, 1 Feb 2024 07:01:47 +0000 (16:01 +0900)
committer諏訪子 <suwako@076.moe>
Thu, 1 Feb 2024 07:01:47 +0000 (16:01 +0900)
Makefile

index dfd5bb3a3ce9df4f7490d62ec467896743a13434..73328ee7e1162a8774a8232649c6ae87d0e4ce56 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,11 +4,12 @@ VERSION=1.2.0
 PREFIX=/usr
 CC=cc
 FILES=main.c showpass.c yankpass.c addpass.c delpass.c listpass.c genpass.c initpass.c otppass.c base32.c
-CFLAGS=-Wall -Wextra -g -I${PREFIX}/include -L${PREFIX}/lib
+CFLAGS=-Wall -Wextra -O3 -I${PREFIX}/include -L${PREFIX}/lib
 LDFLAGS=-lgpgme -lcrypto
 
 all:
        ${CC} ${CFLAGS} -o ${NAME} ${FILES} ${LDFLAGS}
+       strip ${NAME}
 
 clean:
        rm -f ${NAME}