From c2eaf4a8cff5ff0af4b262e2635d6e9597156ead Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Mon, 23 Feb 2026 23:34:12 +0330 Subject: initial commit --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3