Skip to content

Commit

Permalink
add compiler optimizations and strip
Browse files Browse the repository at this point in the history
  • Loading branch information
huntergregal committed Sep 17, 2019
1 parent 5a6c32a commit e684c75
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit e684c75

Please sign in to comment.