diff options
| author | 2026-04-05 14:07:48 +0330 | |
|---|---|---|
| committer | 2026-04-05 14:07:48 +0330 | |
| commit | 871ad95067914ac711734217bc7bb5b779e5135d (patch) | |
| tree | 4d3e6884d0831f73a71c966b114b9b424e78acc4 | |
boilerplate
| -rw-r--r-- | .gitignore | 9 | ||||
| -rw-r--r-- | Makefile | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b44df2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# directores that laim creates +mail +users +# self signed ssl cert +ssl +# junk +extras +# compiled bin +laim 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 |
