Automatization works

This commit is contained in:
Adrien Bourmault 2020-06-01 21:13:01 +02:00
parent 35b91319f9
commit 0e08577ac7
No known key found for this signature in database
GPG Key ID: AFEE5788AEE3F4EC
1 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ BINUTILS_SOURCES = https://ftp.gnu.org/gnu/binutils/$(BINUTILS_NAME).tar.xz
#ENV
export NTHREADS := $(shell nproc)
export PREFIX := $(shell pwd)/bin
export PREFIX := $(shell pwd)/cross-cc
export TARGET := x86_64-elf
export PATH := $(PREFIX)/bin:$(PATH)
export XZ_DEFAULTS := -T $(NTHREADS)
@ -91,7 +91,7 @@ binutils: configurebinutils
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
cd build-binutils && make -j $(NTHREADS)
@echo ${CL2}[$@] ${NC}Compiling $(BINUTILS_NAME)...${CL3}
@mkdir -p bin
@mkdir -p cross-cc
cd build-binutils && make install -j $(NTHREADS)
@echo ${CL2}[$@] ${CL}Success.${CL3}
@ -107,7 +107,7 @@ gcc: binutils configuregcc
@echo ${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 bin
@mkdir -p cross-cc
cd build-gcc && make install-gcc -j $(NTHREADS)
cd build-gcc && make install-target-libgcc -j $(NTHREADS)
@echo ${CL2}[$@] ${CL}Success.${CL3}
@ -116,7 +116,7 @@ clean:
@mkdir -p build-gcc build-binutils
@cd build-gcc && rm -rf *
@cd build-binutils && rm -rf *
@rm -rf bin
@rm -rf cross-cc
@echo ${CL2}[$@] ${CL}Success.${CL3}