diff options
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 |
