Fetch old build of ar when building tools

This commit is contained in:
Thar0
2021-12-22 06:12:31 +00:00
parent 16ac72b291
commit bb4be4e6cd
2 changed files with 11 additions and 4 deletions

View File

@@ -49,13 +49,13 @@ endif
clean:
$(RM) -rf $(BUILD_DIR)
distclean:
$(MAKE) clean
distclean: clean
$(MAKE) -C tools distclean
$(RM) -rf $(BASE_DIR)
setup:
cd $(BASE_DIR) && $(AR) xo ../$(BASE_AR)
chmod -R 777 $(BASE_DIR)
chmod -R +rw $(BASE_DIR)
$(BUILD_DIR)/$(BASE_DIR)/%.o: $(BASE_DIR)/%.o
cp $< $@

View File

@@ -1,8 +1,15 @@
all:
.PHONY=all clean distclean
all: ar
$(MAKE) -C kmc-gcc-wrapper
ar:
wget https://github.com/decompals/mips-binutils-2.7/releases/download/main/binutils-2.7.tar.gz
tar xf binutils-2.7.tar.gz
$(RM) binutils-2.7.tar.gz
clean:
$(MAKE) -C kmc-gcc-wrapper clean
distclean: clean
$(RM) ar