mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-08 19:41:59 +00:00
makefile: Show a warning when binary exceeds limits
This commit is contained in:
parent
a39ba2cd71
commit
dd4dd91152
1 changed files with 4 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -78,8 +78,10 @@ NYXDIR := $(wildcard nyx)
|
||||||
|
|
||||||
all: $(TARGET).bin
|
all: $(TARGET).bin
|
||||||
@echo -n "Payload size is "
|
@echo -n "Payload size is "
|
||||||
@wc -c < $(OUTPUTDIR)/$(TARGET).bin
|
$(eval BIN_SIZE = $(shell wc -c < $(OUTPUTDIR)/$(TARGET).bin))
|
||||||
|
@echo $(BIN_SIZE)
|
||||||
@echo "Max size is 126296 Bytes."
|
@echo "Max size is 126296 Bytes."
|
||||||
|
@if [ ${BIN_SIZE} -gt 126296 ]; then echo "\e[1;33mPayload size exceeds limit!\e[0m"; fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf $(OBJS)
|
@rm -rf $(OBJS)
|
||||||
|
|
Loading…
Reference in a new issue