From e684c75ee4f55e48605f467e004c1295bc9f8f9e Mon Sep 17 00:00:00 2001 From: huntergregal Date: Tue, 17 Sep 2019 12:47:51 -0700 Subject: [PATCH] add compiler optimizations and strip --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0c750b5..a8083a7 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,19 @@ CC=gcc -CFLAGS=-Iinclude/ -D_FILE_OFFSET_BITS=64 +STRIP=strip --strip-unneeded +CFLAGS=-Iinclude/ -D_FILE_OFFSET_BITS=64 -O3 -Wno-unused-result LDFLAGS=-lcrypt all: @$(CC) $(CFLAGS) src/scanner.c src/users.c src/targets.c src/mimipenguin.c -o mimipenguin $(LDFLAGS) @$(CC) $(CFLAGS) -m32 src/scanner.c src/users.c src/targets.c src/mimipenguin.c -o mimipenguin_x32 $(LDFLAGS) + @$(STRIP) mimipenguin + @$(STRIP) mimipenguin_x32 static: @$(CC) $(CFLAGS) -static src/scanner.c src/users.c src/targets.c src/mimipenguin.c -o mimipenguin $(LDFLAGS) @$(CC) $(CFLAGS) -m32 -static src/scanner.c src/users.c src/targets.c src/mimipenguin.c -o mimipenguin_x32 $(LDFLAGS) - + @$(STRIP) mimipenguin + @$(STRIP) mimipenguin_x32 debug: @$(CC) $(CFLAGS) -DDEBUG src/scanner.c src/users.c src/targets.c src/mimipenguin.c -o mimipenguin $(LDFLAGS) @$(CC) $(CFLAGS) -m32 -DDEBUG src/scanner.c src/users.c src/targets.c src/mimipenguin.c -o mimipenguin_x32 $(LDFLAGS)