aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a517f24
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+all: compile strip compress
+
+compile:
+ musl-clang laim.c -o laim -Oz -flto -ffast-math -funroll-loops -fmerge-all-constants -ffunction-sections -fdata-sections -fno-stack-protector -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-ident -fno-plt -fno-exceptions -fno-rtti -Wl,--gc-sections -Wl,--strip-all -Wl,--build-id=none -Wl,-z,norelro -Wno-format -Wno-#warnings -static -Wl,--hash-style=gnu -Wl,-z,noseparate-code
+strip:
+ sstrip laim
+compress:
+ upx --ultra-brute --lzma laim
+
+.PHONY: all compile strip compress