Add tools cleanup with parrent clean

This commit is contained in:
CTCaer 2020-12-26 16:17:03 +02:00
parent 2fba9848ae
commit e620783a89
4 changed files with 4 additions and 4 deletions

View file

@ -103,7 +103,7 @@ all: $(TARGET).bin $(LDRDIR)
@if [ ${BIN_SIZE} -gt 126296 ]; then echo "\e[1;33mPayload size exceeds limit!\e[0m"; fi
@echo "--------------------------------------"
clean:
clean: $(TOOLS)
@rm -rf $(OBJS)
@rm -rf $(BUILDDIR)
@rm -rf $(OUTPUTDIR)

View file

@ -10,7 +10,7 @@ all: bin2c
@echo > /dev/null
clean:
rm -f bin2c
@rm -f bin2c
bin2c: bin2c.c
@$(NATIVE_CC) -o $@ bin2c.c

View file

@ -10,7 +10,7 @@ all: lz77
@echo > /dev/null
clean:
rm -f lz77
@rm -f lz77
lz77: lz.c lz77.c
@$(NATIVE_CC) -o $@ lz.c lz77.c

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
if (nbytes > out_size)
goto error;
if((out_file = fopen(filename,"w")) == NULL)
if((out_file = fopen(filename,"wb")) == NULL)
goto error;
if (fwrite(out_buf, 1, nbytes, out_file) != nbytes)