Skip to content

Commit

Permalink
use upx to compress mips binaries
Browse files Browse the repository at this point in the history
on many older devices, space is a precious commodity.  saving 3-4k is worth it.
  • Loading branch information
Jeffrey Clark committed Apr 17, 2014
1 parent a49106c commit c459dfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ dist:
mips:
$(CROSSCC) -mips32 $(CFLAGS) $(LDFLAGS) $(OPTS) $(SRC) -o dist/pixelserv.mips32
$(CROSSSTRIP) dist/pixelserv.mips32
upx dist/pixelserv.mips32

host32:
$(CC) -m32 $(CFLAGS) $(LDFLAGS) $(OPTS) $(SRC) -o dist/pixelserv.x86
$(STRIP) dist/pixelserv.x86
strip dist/pixelserv.x86

host64:
$(CC) -m64 $(CFLAGS) $(LDFLAGS) $(OPTS) $(SRC) -o dist/pixelserv.amd64
$(STRIP) dist/pixelserv.amd64
strip dist/pixelserv.amd64

tiny:
$(CROSSCC) -mips32 $(CFLAGS) $(LDFLAGS) $(TINY_OPTS) $(SRC) -o dist/pixelserv.tiny.mips32
$(CROSSSTRIP) dist/pixelserv.tiny.mips32
upx dist/pixelserv.tiny.mips32

0 comments on commit c459dfd

Please sign in to comment.