diff --git a/Makefile b/Makefile index bda6419..7e8e942 100644 --- a/Makefile +++ b/Makefile @@ -60,70 +60,70 @@ NC='\033[1;37m' ## RECIPES ------------------------------------------------------------------- # showenv: - @echo Installation path prefix : $(PREFIX) - @echo Installation path : $(PATH) - @echo Target : $(TARGET) - @echo Thread number : $(NTHREADS) + @echo -e Installation path prefix : $(PREFIX) + @echo -e Installation path : $(PATH) + @echo -e Target : $(TARGET) + @echo -e Thread number : $(NTHREADS) $(GCCTARNAME): - @echo ${CL2}[$@] ${NC}Downloading GCC sources...${CL3} + @echo -e ${CL2}[$@] ${NC}Downloading GCC sources...${CL3} @wget $(GCC_SOURCES) -O $(GCCTARNAME) -q -c --show-progress - @echo ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} $(BINUTILSTARNAME): - @echo ${CL2}[$@] ${NC}Downloading BINUTILS sources...${CL3} + @echo -e ${CL2}[$@] ${NC}Downloading BINUTILS sources...${CL3} @wget $(BINUTILS_SOURCES) -O $(BINUTILSTARNAME) -q -c --show-progress - @echo ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} ./build-binutils: $(BINUTILSTARNAME) - @echo ${CL2}[$@] ${NC}Deflate $(BINUTILS_NAME) sources...${CL3} + @echo -e ${CL2}[$@] ${NC}Deflate $(BINUTILS_NAME) sources...${CL3} @tar -xaf $(BINUTILSTARNAME) --skip-old-files - @echo ${CL2}[$@] ${CL}Success.${CL3} - @echo ${CL2}[$@] ${NC}Configuring $(BINUTILS_NAME)...${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${NC}Configuring $(BINUTILS_NAME)...${CL3} @mkdir -p build-binutils cd build-binutils && ../$(BINUTILS_NAME)/configure --target=$(TARGET) --prefix="$(PREFIX)" --with-sysroot --disable-nls --disable-werror - @echo ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} $(PREFIX)/bin/x86_64-elf-objcopy: ./build-binutils - @echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3} + @echo -e ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3} cd build-binutils && make -j $(NTHREADS) - @echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3} + @echo -e ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3} @mkdir -p cross-cc cd build-binutils && make install -j $(NTHREADS) - @echo ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} ./build-gcc: $(GCCTARNAME) - @echo ${CL2}[$@] ${NC}Deflate $(GCC_NAME) sources...${CL3} + @echo -e ${CL2}[$@] ${NC}Deflate $(GCC_NAME) sources...${CL3} @tar -xaf $(GCCTARNAME) --skip-old-files - @echo ${CL2}[$@] ${CL}Success.${CL3} - @echo ${CL2}[$@] ${NC}Configuring $(GCC_NAME)...${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${NC}Configuring $(GCC_NAME)...${CL3} @cp multilib.opt $(GCC_NAME)/gcc/config/i386/t-x86_64-elf @patch $(GCC_NAME)/gcc/config.gcc < patch-red-zone.diff @mkdir -p build-gcc cd build-gcc && ../$(GCC_NAME)/configure --target=$(TARGET) --prefix="$(PREFIX)" --disable-nls --enable-languages=c,c++ --without-headers - @echo ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} $(PREFIX)/bin/x86_64-elf-gcc: $(PREFIX)/bin/x86_64-elf-objcopy ./build-gcc - @echo ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3} + @echo -e ${CL2}[$@] ${NC}Compiling $(GCC_NAME)...${CL3} cd build-gcc && make all-gcc -j $(NTHREADS) cd build-gcc && make all-target-libgcc -j $(NTHREADS) @mkdir -p cross-cc cd build-gcc && make install-gcc -j $(NTHREADS) cd build-gcc && make install-target-libgcc -j $(NTHREADS) - @echo ${CL2}[$@] ${CL}The cross compiler has been successfully compiled.${CL3} - @echo It is located in the cross-cc subdirectory. + @echo -e ${CL2}[$@] ${CL}The cross compiler has been successfully compiled.${CL3} + @echo -e It is located in the cross-cc subdirectory. clean: cd build-gcc && make clean cd build-binutils && make clean @rm -rf cross-cc -@rm -rf $(GCC_NAME)/gcc/config/i386/t-x86_64-elf - -@echo ${CL2}[$@] ${CL}Success.${CL3} + -@echo -e ${CL2}[$@] ${CL}Success.${CL3} remove_all: @rm -rf *gcc* @rm -rf *bin* - @echo ${CL2}[$@] ${CL}Success.${CL3} + @echo -e ${CL2}[$@] ${CL}Success.${CL3} cross-cc: $(PREFIX)/bin/x86_64-elf-gcc