diff options
| author | 2026-02-23 23:34:12 +0330 | |
|---|---|---|
| committer | 2026-02-23 23:34:12 +0330 | |
| commit | c2eaf4a8cff5ff0af4b262e2635d6e9597156ead (patch) | |
| tree | 88ffd57e0266b73f13f5bec344a2fcaea4be77eb /Makefile | |
initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..410735c --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC = clang +CFLAGS = -static -Oz -flto -ffreestanding -ffunction-sections -fdata-sections \ + -Wl,--gc-sections -fno-unwind-tables -fno-asynchronous-unwind-tables \ + -fno-ident -fmerge-all-constants + +define build + $(CC) broadd.c -o $(1) $(CFLAGS) $(2) + strip --strip-all $(1) + upx --brute $(1) +endef + +all: clean bt_log bt_sml bu_log bu_sml + +clean: + rm -rf bin && mkdir bin + +bt_log: ; $(call build, bin/tbroaddv, -DDEBUG=1) +bt_sml: ; $(call build, bin/tbroadd, -DDEBUG=0) +bu_log: ; $(call build, bin/ubroaddv, -DDEBUG=1 -DUDP=1) +bu_sml: ; $(call build, bin/ubroadd, -DDEBUG=0 -DUDP=1)
\ No newline at end of file |
