From 8a10c05920f1c7f8e8b087deef6bacca06039223 Mon Sep 17 00:00:00 2001 From: z00m Date: Thu, 30 May 2019 20:19:46 +0200 Subject: [PATCH] Add: compress option (upx required) --- Makefile.win | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.win b/Makefile.win index 35a4843c..c3534565 100644 --- a/Makefile.win +++ b/Makefile.win @@ -12,6 +12,7 @@ CREATEDIR=mkdir -p INSTALL=cp UNINSTALL=rm -f WINDRES=windres.exe --preprocessor "cpp.exe" +COMPRESS=upx.exe --best -vk --overlay=skip --compress-icons=0 EXE=sjasmplus.exe @@ -77,6 +78,9 @@ install: uninstall: $(UNINSTALL) $(PREFIX)/$(EXE) + +compress: + $(COMPRESS) $(EXE) .c.o: $(GCC) $(CFLAGS) -o $@ -c $<